From d97f3f40fa29d24e021b674f5a57835203e81b7a Mon Sep 17 00:00:00 2001 From: anomen Date: Thu, 26 Jul 2012 22:22:34 +0200 Subject: [PATCH] gc-fallout - tests --- www-apps/gc-fallout/dev/tests/tests.php | 4 ++++ www-apps/gc-fallout/dev/tests/token.php | 1 - www-apps/gc-fallout/dev/tests/toolbox.php | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/www-apps/gc-fallout/dev/tests/tests.php b/www-apps/gc-fallout/dev/tests/tests.php index dd30a62..ab8162d 100644 --- a/www-apps/gc-fallout/dev/tests/tests.php +++ b/www-apps/gc-fallout/dev/tests/tests.php @@ -1,4 +1,8 @@ 'l','karma'=>11, 'penize'=>10,'jidlo'=>3,'skore'=>100); diff --git a/www-apps/gc-fallout/dev/tests/toolbox.php b/www-apps/gc-fallout/dev/tests/toolbox.php index fcfc37c..fd72e22 100644 --- a/www-apps/gc-fallout/dev/tests/toolbox.php +++ b/www-apps/gc-fallout/dev/tests/toolbox.php @@ -9,9 +9,11 @@ assertTrue(PORADI($zadano, 10, 20, 30, 40)); assertTrue(PORADI($zadano, 1, 10, 30, 40)); assertFalse(PORADI($zadano, 20, 10, 30, 40)); +assertFalse(PORADI($zadano, 30, 10)); assertTrue(PORADI(array(20), 20, 10, 30, 40)); assertTrue(PORADI(array(10), 20, 10, 30, 40)); +assertTrue(PORADI(array(10, 40), 20, 10, 30, 40)); $U = array(); -- 2.11.4.GIT