From 9f69f3347d843cc3458f352aafb2eddf0fbb9ee1 Mon Sep 17 00:00:00 2001 From: Merijn Wijngaard Date: Fri, 23 Oct 2015 18:12:28 +0200 Subject: [PATCH] Added lazy if test --- test/Lazy/LazyIfTest.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/Lazy/LazyIfTest.php diff --git a/test/Lazy/LazyIfTest.php b/test/Lazy/LazyIfTest.php new file mode 100644 index 0000000..3d90b2a --- /dev/null +++ b/test/Lazy/LazyIfTest.php @@ -0,0 +1,16 @@ +forAll(Generator\int(), Generator\int())->__invoke(function ($a, $b) { + $this->assertEquals($a > $b ? $a : $b, lazy_if($a > $b, $a, $b)->resolve()); + }); + } +} \ No newline at end of file