Browse Source

one more hex example

Nicolas Cannasse 15 years ago
parent
commit
b662c541f9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/unit/TestBasetypes.hx

+ 1 - 0
tests/unit/TestBasetypes.hx

@@ -101,6 +101,7 @@ class TestBasetypes extends Test {
 	function testStringTools() {
 	function testStringTools() {
 		eq( StringTools.hex(0xABCDEF,7), "0ABCDEF" );
 		eq( StringTools.hex(0xABCDEF,7), "0ABCDEF" );
 		eq( StringTools.hex(-1,8), "FFFFFFFF" );
 		eq( StringTools.hex(-1,8), "FFFFFFFF" );
+		eq( StringTools.hex(-481400000,8), "E34E6B40" );
 	}
 	}
 
 
 }
 }