diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-01-14 14:12:03 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-01-14 14:12:03 +0100 |
| commit | dc5ea1e78eee529090d739774889639fab1c181c (patch) | |
| tree | 2acee44930f7d9227aa1dbb1d6256bfaad245cda /src/de/fhswf/in/inf/java1/aufgabe13/UnaryOperatorTests.java | |
| parent | 1b7c58e24ac4a143521aa0a77f6a1a486a1dca39 (diff) | |
| download | Java1-dc5ea1e78eee529090d739774889639fab1c181c.tar.gz Java1-dc5ea1e78eee529090d739774889639fab1c181c.zip | |
Assignment No.13 after correction
Diffstat (limited to 'src/de/fhswf/in/inf/java1/aufgabe13/UnaryOperatorTests.java')
| -rw-r--r-- | src/de/fhswf/in/inf/java1/aufgabe13/UnaryOperatorTests.java | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/src/de/fhswf/in/inf/java1/aufgabe13/UnaryOperatorTests.java b/src/de/fhswf/in/inf/java1/aufgabe13/UnaryOperatorTests.java deleted file mode 100644 index 997f71e..0000000 --- a/src/de/fhswf/in/inf/java1/aufgabe13/UnaryOperatorTests.java +++ /dev/null @@ -1,60 +0,0 @@ -/** - * - */ -package de.fhswf.in.inf.java1.aufgabe13; - -import static org.junit.Assert.assertEquals; - -import java.util.Stack; - -import org.junit.Test; - -import de.fhswf.in.inf.java1.aufgabe12.UnaryOperator; -import de.fhswf.in.inf.java1.aufgabe12.UnaryTemplate; - -/** - * Tests the BinaryOperators. - * - * @author $Author: $ - * @version $Revision: $, $Date: $ UTC - */ -public class UnaryOperatorTests -{ - - /** - * Test for the UnaryTemplate class initialized with sin. - */ - @Test - public final void testOperatorSin() - { - // Sin is tested - UnaryOperator tester = new UnaryTemplate("sin"); - - // Test - Stack<Double> test = new Stack<>(); - - test.add(0.0); - tester.eval(test); - - assertEquals(0.0, (double) test.pop(), 0); - } - - /** - * Test for the UnaryTemplate class initialized with cos. - */ - @Test - public final void testOperatorCos() - { - // Cos is tested - UnaryOperator tester = new UnaryTemplate("cos"); - - // Test - Stack<Double> test = new Stack<>(); - - test.add(0.0); - tester.eval(test); - - assertEquals(1.0, (double) test.pop(), 0); - } - -} |
