Changeset 50
- Timestamp:
- 03/16/06 15:44:48 (3 years ago)
- Files:
-
- trunk/test/test.js (modified) (1 diff)
- trunk/test/test_codecs.js (added)
- trunk/test/test_core.js (added)
- trunk/test/test_core.txt (added)
- trunk/test/test_crypto.js (added)
- trunk/test/test_iter.js (modified) (2 diffs)
- trunk/test/test_jsonrpc.js (added)
- trunk/test/test_sets.js (modified) (1 diff)
- trunk/test/test_strings.js (added)
- trunk/test/test_strings.txt (added)
- trunk/test/test_testing.js (modified) (3 diffs)
- trunk/test/test_urllib.js (added)
- trunk/test/test_xmlrpc.js (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/test/test.js
r47 r50 1 1 Module("test", "0.0.1", function(mod){ 2 2 3 var moduleNames=[' async','codecs','crypto','dom','forms','iter','jsonrpc','lang','operators','sets','strings','testing','urllib','xml','xmlrpc', 'net.sockets'];3 var moduleNames=['testing','core','sets','iter','codecs','crypto','urllib', 'jsonrpc','xmlrpc']; 4 4 5 5 mod.log=function(){ trunk/test/test_iter.js
r47 r50 67 67 68 68 mod.profile=function(){ 69 var iter = imprt('iter').iter;69 var iter = imprt('iter').iter; 70 70 var filter = imprt('iter').filter; 71 71 … … 175 175 176 176 }; 177 mod.__main__=function(){ 178 mod.test(imprt('testing'), {log:print}) 179 }; 177 180 }); trunk/test/test_sets.js
r47 r50 33 33 34 34 mod.__main__=function(){ 35 35 mod.test(imprt('testing'), {log:print}) 36 36 }; 37 37 }); trunk/test/test_testing.js
r47 r50 4 4 5 5 testing.assert(true); 6 6 7 testing.assertTrue(true); 8 7 9 testing.assertFalse(false); 10 8 11 testing.assertNull(null); 9 12 testing.assertNotNull(undefined); … … 11 14 testing.assertNotNull({}); 12 15 testing.assertNotNull(0); 16 13 17 testing.assertUndefined(undefined); 18 14 19 testing.assertNotUndefined(null); 20 15 21 testing.assertNaN(NaN); 22 16 23 testing.assertNotNaN(435); 17 testing.assertEquals(1,1);24 18 25 testing.assertEquals(1,1); 19 26 testing.assertEquals("a","a"); … … 21 28 testing.assertEquals(undefined,undefined); 22 29 testing.assertEquals(mod,mod); 30 testing.assertEquals([1,2,3], [1,2,3]); 31 32 testing.assertNotEquals(1,2); 33 testing.assertNotEquals("1",1); 34 testing.assertNotEquals("1",1); 35 testing.assertNotEquals("", false); 36 testing.assertNotEquals(null, undefined); 37 testing.assertNotEquals([1,2,3], [2,3]); 38 39 23 40 testing.assertIs(mod,mod); 24 testing.assertNotEquals(1,2); 25 testing.assertNotEquals(mod,{}); 41 testing.assertIs(null,null); 42 testing.assertIs(undefined,undefined); 43 testing.assertIs("ab","ab"); 44 testing.assertIs(123,123); 45 var a=b=[123]; 46 testing.assertIs(a,b); 47 var a=b={}; 48 testing.assertIs(a,b); 49 26 50 testing.assertIsNot(null,undefined); 27 51 testing.assertIsNot(mod,{}); 52 testing.assertIsNot([123],[123]); 53 testing.assertIsNot({},{}); 54 55 }; 28 56 29 }; 57 mod.__main__=function(){ 58 mod.test(imprt('testing'), {log:print}) 59 }; 30 60 });
