feat: Implement a mathematical implication

This commit is contained in:
2022-05-13 13:46:41 +02:00
parent f92bef517f
commit e24ef0c3d5
5 changed files with 24 additions and 1 deletions

14
test/math_test.dart Normal file
View 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);
});
});
}