diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2019-07-02 18:32:37 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2019-07-02 18:32:37 -0400 |
| commit | 4d0a59a0023f2b4fca144a089a3f75acb4ebd62b (patch) | |
| tree | eed89369ceda7dd1b356dd5055ada9287738b092 /src/test/java/io/github/bculkin2442/data/BooleanToggleTest.java | |
| parent | 3a56e3ee3f2f6069de5cf8d2bee81052bbf346e6 (diff) | |
Move tests to new package
Diffstat (limited to 'src/test/java/io/github/bculkin2442/data/BooleanToggleTest.java')
| -rw-r--r-- | src/test/java/io/github/bculkin2442/data/BooleanToggleTest.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/test/java/io/github/bculkin2442/data/BooleanToggleTest.java b/src/test/java/io/github/bculkin2442/data/BooleanToggleTest.java deleted file mode 100644 index 8211117..0000000 --- a/src/test/java/io/github/bculkin2442/data/BooleanToggleTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.github.bculkin2442.data; - -import static org.junit.Assert.assertEquals; - -import org.junit.Test; - -import bjc.data.BooleanToggle; - -/** - * Test for boolean toggles. - * @author bjculkin - * - */ -public class BooleanToggleTest { - - /** - * Test that boolean toggles work right. - */ - @Test - public void test() { - BooleanToggle tog = new BooleanToggle(); - - // Check initial value is false. - assertEquals(false, tog.peek()); - // Check that 'get' returns the old value - assertEquals(false, tog.get()); - // Check that 'get' swaps the value - assertEquals(true, tog.peek()); - // Check that we can round-trip back. - assertEquals(true, tog.get()); - assertEquals(false, tog.peek()); - - tog.set(true); - - // Check set works - assertEquals(true, tog.peek()); - } -} |
