File: unittest.js

Recommend this page to a friend!
  Classes of Chi H.   JS Dots and Blocks Game   unittest.js   Download  
File: unittest.js
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: JS Dots and Blocks Game
Render and manage a 2 player dots and blocks game
Author: By
Last change:
Date: 10 years ago
Size: 654 bytes
 

Contents

Class file image Download
/* * Copyright (c) 2015 Chi Hoang * All rights reserved */ cd = new Board(5,5,new List()); QUnit.test( cd, function( assert ) { assert.ok( 1 == "1", "Passed!" ); }); cd = new Board(2,5,new List()); QUnit.test( cd, function( assert ) { assert.ok( 1 == "1", "Passed!" ); }); cd = new Board(6,3,new List()); QUnit.test( cd, function( assert ) { assert.ok( 1 == "1", "Passed!" ); }); //omega=cd.observers.get(3).update(); //QUnit.test( cd, function( assert ) { // assert.equal ( omega, true, "Passed!" ); //}); omega=cd.observers.get(3).uncheck(); QUnit.test( cd, function( assert ) { assert.equal ( omega, false, "Passed!" ); });