// To run a test to see if two values are equal, use the following:
Assertions.assertTrue(alwaysTrue,"The test failed because alwaysTrue was not true");
Assertions.assertFalse(alwaysFalse,"The test failed because alwaysFalse was not false");
Assertions.assertEquals(alwaysOne*2,alwaysTwo,"The test failed because alwaysOne*2 was not equal to alwaysTwo");
Assertions.assertEquals(alwaysHello+""+alwaysWorld,"Hello World","The test failed because alwaysHello + \"\" + alwaysWorld was not equal to \"Hello World\"");
Assertions.assertArrayEquals(newint[]{1,2,3},alwaysOneTwoThree,"The test failed because new int[]{1,2,3} was not equal to alwaysOneTwoThree");
Assertions.assertTrue(BlueLagoon.isStateStringWellFormed(DEFAULT_GAME),"The test failed because DEFAULT_GAME was marked as an invalid state string");
System.out.println("Test 1 passed");
// Test adding multiple player with the same id (Caused Error 1)
StringDEFAULT_WITH_ADDED=DEFAULT_GAME+" p 1 0 0 0 0 0 0 S T;";
Assertions.assertFalse(BlueLagoon.isStateStringWellFormed(DEFAULT_WITH_ADDED),"The test failed because DEFAULT with double Player 1 was marked as a valid state string");
System.out.println("Test 2 passed");
DEFAULT_WITH_ADDED=DEFAULT_GAME+" p 0 0 0 0 0 0 0 S T;";
Assertions.assertFalse(BlueLagoon.isStateStringWellFormed(DEFAULT_WITH_ADDED),"The test failed because DEFAULT with double Player 0 was marked as a valid state string");
System.out.println("Test 3 passed");
// Test adding `a 13 2; `
DEFAULT_WITH_ADDED="a 13 2; "+DEFAULT_GAME;
Assertions.assertFalse(BlueLagoon.isStateStringWellFormed(DEFAULT_WITH_ADDED),"The test failed because DEFAULT with double init was marked as a valid state string");
Assertions.assertTrue(BlueLagoon.isMoveStringWellFormed(moveString),"The test failed because \"S 10,11\" is DEEMED an invalid move String even though it should be valid");
System.out.println("Test moveString is valid");
// updating the move string to a new one
moveString="T 4,5";
Assertions.assertTrue(BlueLagoon.isMoveStringWellFormed(moveString),"The test failed because \"T 4,5\" is DEEMED an invalid move String even though it should be valid");
System.out.println("Test 2 passed");
moveString="A 1,2";
Assertions.assertFalse(BlueLagoon.isMoveStringWellFormed(moveString),"The test failed \"A 1,2\" is DEEMED a valid move string even though it should be invalid because the first element is supposed to be only either `S` or `T`");
System.out.println("Test 3 passed");
moveString="S 12";
Assertions.assertFalse(BlueLagoon.isMoveStringWellFormed(moveString),"The test failed because \"S 12\" is DEEMED a valid move string even though it should be invalid because there should be a `,` between the numbers `1` and `2` to differentiate between rows and cols");
System.out.println("Test 4 passed");
moveString="S 1, 2";
Assertions.assertFalse(BlueLagoon.isMoveStringWellFormed(moveString),"The test failed because \"S 1, 2\" is DEEMED a valid move string even though it should be invalid because there should not be any whitespace after `,`");
System.out.println("Test 5 passed");
moveString="T 1,2";
Assertions.assertFalse(BlueLagoon.isMoveStringWellFormed(moveString),"The test failed because \"T 1,2\" is DEEMED a valid move string even though it should be invalid because there should not be 2 whitespaces after the first element (i.e. after `T`)");
System.out.println("Test 6 passed");
moveString="S 3 ,4";
Assertions.assertFalse(BlueLagoon.isMoveStringWellFormed(moveString),"The test failed because \"S 3,4\" is DEEMED a valid move string even though it should be invalid because there should not be a whitespace after the first number");