feat: Implement a mathematical implication
This commit is contained in:
14
test/math_test.dart
Normal file
14
test/math_test.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import "package:moxlib/math.dart";
|
||||
|
||||
import "package:test/test.dart";
|
||||
|
||||
void main() {
|
||||
group("implies", () {
|
||||
test("Truth table test", () {
|
||||
expect(implies(true, true), true);
|
||||
expect(implies(true, false), false);
|
||||
expect(implies(false, true), true);
|
||||
expect(implies(false, false), true);
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user