Exemplo n.º 1
0
 public function test_allSatisfies()
 {
     $allNotNull = F\allSatisfies(F\pipe(F\eq(0), F\not()));
     $this->assertTrue($allNotNull([9, 3, 2, 4]));
     $this->assertFalse($allNotNull([9, 3, 0, 4]));
 }
Exemplo n.º 2
0
 public function test_not()
 {
     $this->assertTrue(F\not(false));
     $this->assertFalse(F\not(true));
 }