Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Side by Side Diff: test/mjsunit/compiler/logical-and.js

Issue 6869007: Cleanup of mjsunit.js code and make assertEquals more strict. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/mjsunit/array-length.js ('k') | test/mjsunit/const.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 28 matching lines...) Expand all
39 39
40 function AndNN(x,y) { 40 function AndNN(x,y) {
41 return x && y; 41 return x && y;
42 } 42 }
43 43
44 assertTrue(AndBB(0, 0)); 44 assertTrue(AndBB(0, 0));
45 assertFalse(AndBB(1, 0)); 45 assertFalse(AndBB(1, 0));
46 assertFalse(AndBB(0, 1)); 46 assertFalse(AndBB(0, 1));
47 assertFalse(AndBB(1, 1)); 47 assertFalse(AndBB(1, 1));
48 48
49 assertFalse(AndBN(0, 0)); 49 assertEquals(0, AndBN(0, 0));
50 assertTrue(AndBN(0, 1)); 50 assertEquals(1, AndBN(0, 1));
51 assertFalse(AndBN(1, 0)); 51 assertFalse(AndBN(1, 0));
52 assertEquals(1, AndBN(0, 1)); 52 assertEquals(1, AndBN(0, 1));
53 assertEquals(2, AndBN(0, 2)); 53 assertEquals(2, AndBN(0, 2));
54 assertFalse(AndBN(1, 1)); 54 assertFalse(AndBN(1, 1));
55 assertFalse(AndBN(1, 2)); 55 assertFalse(AndBN(1, 2));
56 56
57 assertEquals(0, AndNB(0, 0)); 57 assertEquals(0, AndNB(0, 0));
58 assertTrue(AndNB(1, 0)); 58 assertTrue(AndNB(1, 0));
59 assertEquals(0, AndNB(0, 1)); 59 assertEquals(0, AndNB(0, 1));
60 assertEquals("", AndNB("", 1)); 60 assertEquals("", AndNB("", 1));
61 assertFalse(AndNB(1, 1)); 61 assertFalse(AndNB(1, 1));
62 assertTrue(AndNB(2, 0)); 62 assertTrue(AndNB(2, 0));
63 63
64 assertEquals(0, AndNN(0, 0)); 64 assertEquals(0, AndNN(0, 0));
65 assertEquals(0, AndNN(1, 0)); 65 assertEquals(0, AndNN(1, 0));
66 assertEquals(0, AndNN(2, 0)); 66 assertEquals(0, AndNN(2, 0));
67 assertEquals(0, AndNN(0, 1)); 67 assertEquals(0, AndNN(0, 1));
68 assertEquals(0, AndNN(0, 2)); 68 assertEquals(0, AndNN(0, 2));
69 assertEquals(1, AndNN(1, 1)); 69 assertEquals(1, AndNN(1, 1));
70 assertEquals(2, AndNN(3, 2)); 70 assertEquals(2, AndNN(3, 2));
OLDNEW
« no previous file with comments | « test/mjsunit/array-length.js ('k') | test/mjsunit/const.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698