Skip to content

Commit

Permalink
Build commit 62cc6d9
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Aug 6, 2024
1 parent 4e97de3 commit 28bbc7f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion feed.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="4.3.3">Jekyll</generator><link href="https://qunitjs.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://qunitjs.com/" rel="alternate" type="text/html" hreflang="en" /><updated>2024-08-01T23:06:44+00:00</updated><id>https://qunitjs.com/feed.xml</id><title type="html">QUnit</title><subtitle>The powerful, easy-to-use JavaScript testing framework.</subtitle></feed>
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="4.3.3">Jekyll</generator><link href="https://qunitjs.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://qunitjs.com/" rel="alternate" type="text/html" hreflang="en" /><updated>2024-08-06T21:17:42+00:00</updated><id>https://qunitjs.com/feed.xml</id><title type="html">QUnit</title><subtitle>The powerful, easy-to-use JavaScript testing framework.</subtitle></feed>
20 changes: 12 additions & 8 deletions resources/example-fail.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,24 @@
<script src="https://code.jquery.com/qunit/qunit-3.0.0-alpha.2.js"></script>
<script>
QUnit.test('apple', function (assert) {
assert.equal('this is expected', 'this is expected', 'example');
assert.true(true);
assert.true(true, 'stem');
assert.true(true, 'skin');
});
QUnit.test('banana', function (assert) {
assert.true(true, 'foo');
assert.equal('this is actual', 'this is expected', 'bar');
var sentence = 'This is actual.';
assert.equal(sentence, 'This is expected.', 'example sentence');
assert.true(true, 'bar');
assert.true(true, 'baz');
assert.true(true, 'quux');
});
QUnit.test('citron', function (assert) {
assert.equal('this is expected', 'this is expected', 'example');
assert.true(true);
QUnit.test('sauerkraut', function (assert) {
assert.true(true, 'acid rock');
assert.true(true, 'kraut rock');
});
QUnit.test('dampfnudel', function (assert) {
assert.true(true, 'stream');
assert.true(true, 'bun');
});
</script>
</body>
</html>
<!-- This is the demo on the home page. -->
10 changes: 9 additions & 1 deletion resources/game.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ QUnit.module('game', (hooks) => {
assert.false(board.find(bob));
});

QUnit.test('move', (assert) => {
QUnit.test('moveRight', (assert) => {
const alice = new game.Robot();
board.add(alice);

Expand All @@ -56,5 +56,13 @@ QUnit.module('game', (hooks) => {
board.moveRight(bob);
}, board.BoardObjectError, 'not on board');
});

QUnit.test('moveLeft', (assert) => {
const alice = new game.Robot();
board.add(alice);

board.moveLeft(alice);
assert.propContains(board.find(alice), { x: 2, y: 0 }, 'teleport to far end');
});
});
});

0 comments on commit 28bbc7f

Please sign in to comment.