- */
-public class basicCalc {
- private int IVar1,IVar2,IErg;
- private long LVar1,LVar2,LErg;
- private float FVar1,FVar2,FErg;
- private double DVar1,DVar2,DErg;
-
-/**
- * Basic constructor without initialization of any field
- *
- *
- *
- *
- *
- *
- *
- */
- public basicCalc()
- {
- this.IVar1=0;
- this.IVar2=0;
- this.IErg=0;
-
- this.LVar1=0;
- this.LVar2=0;
- this.LErg=0;
-
- this.FVar1=0;
- this.FVar2=0;
- this.FErg=0;
-
- this.DVar1=0;
- this.DVar2=0;
- this.DErg=0;
- }
-/**
- * Basic constructor with initialization for integer operations
- * @param var1 input variable 1
- * @param var2 input variable 2
- *
- */
- public basicCalc(int var1, int var2)
- {
- this.IVar1=var1;
- this.IVar2=var2;
- this.IErg=0;
-
- this.LVar1=0;
- this.LVar2=0;
- this.LErg=0;
-
- this.FVar1=0;
- this.FVar2=0;
- this.FErg=0;
-
- this.DVar1=0;
- this.DVar2=0;
- this.DErg=0;
- }
-/**
- *
Basic constructor with initialization for long operations
- * @param var1 input variable 1
- * @param var2 input variable 2
- *
- */
- public basicCalc(long var1, long var2)
- {
- this.IVar1=0;
- this.IVar2=0;
- this.IErg=0;
-
- this.LVar1=var1;
- this.LVar2=var2;
- this.LErg=0;
-
- this.FVar1=0;
- this.FVar2=0;
- this.FErg=0;
-
- this.DVar1=0;
- this.DVar2=0;
- this.DErg=0;
- }
-/**
- *
Basic constructor with initialization for float operations
- * @param var1 input variable 1
- * @param var2 input variable 2
- *
- */
- public basicCalc(float var1, float var2)
- {
- this.IVar1=0;
- this.IVar2=0;
- this.IErg=0;
-
- this.LVar1=0;
- this.LVar2=0;
- this.LErg=0;
-
- this.FVar1=var1;
- this.FVar2=var2;
- this.FErg=0;
-
- this.DVar1=0;
- this.DVar2=0;
- this.DErg=0;
- }
-/**
- *
Basic constructor with initialization for double operations
- * @param var1 input variable 1
- * @param var2 input variable 2
- *
- */
- public basicCalc(double var1, double var2)
- {
- this.IVar1=0;
- this.IVar2=0;
- this.IErg=0;
-
- this.LVar1=0;
- this.LVar2=0;
- this.LErg=0;
-
- this.FVar1=0;
- this.FVar2=0;
- this.FErg=0;
-
- this.DVar1=var1;
- this.DVar2=var2;
- this.DErg=0;
- }
-
-/**
- *
Sets integer input variable 1
- * @param var input variable
- *
- */
- public void set_Var1(int var)
- {
- this.IVar1=var;
- }
-/**
- *
Sets integer input variable 2
- * @param var input variable
- *
- */
- public void set_Var2(int var)
- {
- this.IVar2=var;
- }
-/**
- *
Sets long input variable 1
- * @param var input variable
- *
- */
- public void set_Var1(long var)
- {
- this.LVar1=var;
- }
-/**
- *
Sets long input variable 2
- * @param var input variable
- *
- */
- public void set_Var2(long var)
- {
- this.LVar2=var;
- }
-/**
- *
Sets float input variable 1
- * @param var input variable
- *
- */
- public void set_Var1(float var)
- {
- this.FVar1=var;
- }
-/**
- *
Sets float input variable 2
- * @param var input variable
- *
- */
- public void set_Var2(float var)
- {
- this.FVar2=var;
- }
-/**
- *
Sets double input variable 1
- * @param var input variable
- *
- */
- public void set_Var1(double var)
- {
- this.DVar1=var;
- }
-/**
- *
Sets double input variable 2
- * @param var input variable
- *
- */
- public void set_Var2(double var)
- {
- this.DVar2=var;
- }
-
-/**
- *
returns integer calculation result
- * @return integer result
- *
- */
- public int get_IErg()
- {
- return this.IErg;
- }
-/**
- *
returns long calculation result
- * @return long result
- *
- */
- public long get_LErg()
- {
- return this.LErg;
- }
-/**
- *
returns float calculation result
- * @return float result
- *
- */
- public float get_FErg()
- {
- return this.FErg;
- }
-/**
- *
returns double calculation result
- * @return double result
- *
- */
- public double get_DErg()
- {
- return this.DErg;
- }
-
-/**
- *
adds variable 1 to variable 2
- */
- public void add()
- {
- this.IErg = this.IVar1 + this.IVar2;
- this.LErg = this.LVar1 + this.LVar2;
- this.FErg = this.FVar1 + this.FVar2;
- this.DErg = this.DVar1 + this.DVar2;
- }
-/**
- *
subtacts variable 2 from variable 1
- */
- public void sub()
- {
- this.IErg = this.IVar1 - this.IVar2;
- this.LErg = this.LVar1 - this.LVar2;
- this.FErg = this.FVar1 - this.FVar2;
- this.DErg = this.DVar1 - this.DVar2;
- }
-/**
- *
multiplies variable 1 and variable 2
- */
- public void mul()
- {
- this.IErg = this.IVar1 * this.IVar2;
- this.LErg = this.LVar1 * this.LVar2;
- this.FErg = this.FVar1 * this.FVar2;
- this.DErg = this.DVar1 * this.DVar2;
- }
-/**
- *
divides variable 1 by variable 2
- */
- public void div()
- {
- try
- {
- this.IErg = this.IVar1 / this.IVar2;
- }catch(ArithmeticException ae)
- {
- this.IErg = 0;
- }
- try
- {
- this.LErg = this.LVar1 / this.LVar2;
- }catch(ArithmeticException ae)
- {
- this.LErg = 0L;
- }
- try
- {
- this.FErg = this.FVar1 / this.FVar2;
- }catch(ArithmeticException ae)
- {
- this.FErg = 0.0f;
- }
- try
- {
- this.DErg = this.DVar1 / this.DVar2;
- }catch(ArithmeticException ae)
- {
- this.DErg = 0.0d;
- }
- if (this.FErg != this.FErg) this.FErg=0.0f;
- if (this.DErg != this.DErg) this.DErg=0.0d;
- }
-}
diff --git a/stylesheets/github-dark.css b/stylesheets/github-dark.css
new file mode 100644
index 0000000..0c393bf
--- /dev/null
+++ b/stylesheets/github-dark.css
@@ -0,0 +1,116 @@
+/*
+ Copyright 2014 GitHub Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+*/
+
+.pl-c /* comment */ {
+ color: #969896;
+}
+
+.pl-c1 /* constant, markup.raw, meta.diff.header, meta.module-reference, meta.property-name, support, support.constant, support.variable, variable.other.constant */,
+.pl-s .pl-v /* string variable */ {
+ color: #0099cd;
+}
+
+.pl-e /* entity */,
+.pl-en /* entity.name */ {
+ color: #9774cb;
+}
+
+.pl-s .pl-s1 /* string source */,
+.pl-smi /* storage.modifier.import, storage.modifier.package, storage.type.java, variable.other, variable.parameter.function */ {
+ color: #ddd;
+}
+
+.pl-ent /* entity.name.tag */ {
+ color: #7bcc72;
+}
+
+.pl-k /* keyword, storage, storage.type */ {
+ color: #cc2372;
+}
+
+.pl-pds /* punctuation.definition.string, string.regexp.character-class */,
+.pl-s /* string */,
+.pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */,
+.pl-sr /* string.regexp */,
+.pl-sr .pl-cce /* string.regexp constant.character.escape */,
+.pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */,
+.pl-sr .pl-sre /* string.regexp source.ruby.embedded */ {
+ color: #3c66e2;
+}
+
+.pl-v /* variable */ {
+ color: #fb8764;
+}
+
+.pl-id /* invalid.deprecated */ {
+ color: #e63525;
+}
+
+.pl-ii /* invalid.illegal */ {
+ background-color: #e63525;
+ color: #f8f8f8;
+}
+
+.pl-sr .pl-cce /* string.regexp constant.character.escape */ {
+ color: #7bcc72;
+ font-weight: bold;
+}
+
+.pl-ml /* markup.list */ {
+ color: #c26b2b;
+}
+
+.pl-mh /* markup.heading */,
+.pl-mh .pl-en /* markup.heading entity.name */,
+.pl-ms /* meta.separator */ {
+ color: #264ec5;
+ font-weight: bold;
+}
+
+.pl-mq /* markup.quote */ {
+ color: #00acac;
+}
+
+.pl-mi /* markup.italic */ {
+ color: #ddd;
+ font-style: italic;
+}
+
+.pl-mb /* markup.bold */ {
+ color: #ddd;
+ font-weight: bold;
+}
+
+.pl-md /* markup.deleted, meta.diff.header.from-file */ {
+ background-color: #ffecec;
+ color: #bd2c00;
+}
+
+.pl-mi1 /* markup.inserted, meta.diff.header.to-file */ {
+ background-color: #eaffea;
+ color: #55a532;
+}
+
+.pl-mdr /* meta.diff.range */ {
+ color: #9774cb;
+ font-weight: bold;
+}
+
+.pl-mo /* meta.output */ {
+ color: #264ec5;
+}
+
diff --git a/stylesheets/stylesheet.css b/stylesheets/stylesheet.css
new file mode 100644
index 0000000..a54a639
--- /dev/null
+++ b/stylesheets/stylesheet.css
@@ -0,0 +1,247 @@
+body {
+ margin: 0;
+ padding: 0;
+ background: #151515 url("../images/bkg.png") 0 0;
+ color: #eaeaea;
+ font: 16px;
+ line-height: 1.5;
+ font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
+}
+
+/* General & 'Reset' Stuff */
+
+.container {
+ width: 90%;
+ max-width: 600px;
+ margin: 0 auto;
+}
+
+section {
+ display: block;
+ margin: 0 0 20px 0;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ margin: 0 0 20px;
+}
+
+li {
+ line-height: 1.4 ;
+}
+
+/* Header,
+ header - container
+ h1 - project name
+ h2 - project description
+*/
+
+header {
+ background: rgba(0, 0, 0, 0.1);
+ width: 100%;
+ border-bottom: 1px dashed #b5e853;
+ padding: 20px 0;
+ margin: 0 0 40px 0;
+}
+
+header h1 {
+ font-size: 30px;
+ line-height: 1.5;
+ margin: 0 0 0 -40px;
+ font-weight: bold;
+ font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
+ color: #b5e853;
+ text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
+ 0 0 5px rgba(181, 232, 83, 0.1),
+ 0 0 10px rgba(181, 232, 83, 0.1);
+ letter-spacing: -1px;
+ -webkit-font-smoothing: antialiased;
+}
+
+header h1:before {
+ content: "./ ";
+ font-size: 24px;
+}
+
+header h2 {
+ font-size: 18px;
+ font-weight: 300;
+ color: #666;
+}
+
+#downloads .btn {
+ display: inline-block;
+ text-align: center;
+ margin: 0;
+}
+
+/* Main Content
+*/
+
+#main_content {
+ width: 100%;
+ -webkit-font-smoothing: antialiased;
+}
+section img {
+ max-width: 100%
+}
+
+h1, h2, h3, h4, h5, h6 {
+ font-weight: normal;
+ font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
+ color: #b5e853;
+ letter-spacing: -0.03em;
+ text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
+ 0 0 5px rgba(181, 232, 83, 0.1),
+ 0 0 10px rgba(181, 232, 83, 0.1);
+}
+
+#main_content h1 {
+ font-size: 30px;
+}
+
+#main_content h2 {
+ font-size: 24px;
+}
+
+#main_content h3 {
+ font-size: 18px;
+}
+
+#main_content h4 {
+ font-size: 14px;
+}
+
+#main_content h5 {
+ font-size: 12px;
+ text-transform: uppercase;
+ margin: 0 0 5px 0;
+}
+
+#main_content h6 {
+ font-size: 12px;
+ text-transform: uppercase;
+ color: #999;
+ margin: 0 0 5px 0;
+}
+
+dt {
+ font-style: italic;
+ font-weight: bold;
+}
+
+ul li {
+ list-style: none;
+}
+
+ul li:before {
+ content: ">>";
+ font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
+ font-size: 13px;
+ color: #b5e853;
+ margin-left: -37px;
+ margin-right: 21px;
+ line-height: 16px;
+}
+
+blockquote {
+ color: #aaa;
+ padding-left: 10px;
+ border-left: 1px dotted #666;
+}
+
+pre {
+ background: rgba(0, 0, 0, 0.9);
+ border: 1px solid rgba(255, 255, 255, 0.15);
+ padding: 10px;
+ font-size: 14px;
+ color: #b5e853;
+ border-radius: 2px;
+ -moz-border-radius: 2px;
+ -webkit-border-radius: 2px;
+ text-wrap: normal;
+ overflow: auto;
+ overflow-y: hidden;
+}
+
+table {
+ width: 100%;
+ margin: 0 0 20px 0;
+}
+
+th {
+ text-align: left;
+ border-bottom: 1px dashed #b5e853;
+ padding: 5px 10px;
+}
+
+td {
+ padding: 5px 10px;
+}
+
+hr {
+ height: 0;
+ border: 0;
+ border-bottom: 1px dashed #b5e853;
+ color: #b5e853;
+}
+
+/* Buttons
+*/
+
+.btn {
+ display: inline-block;
+ background: -webkit-linear-gradient(top, rgba(40, 40, 40, 0.3), rgba(35, 35, 35, 0.3) 50%, rgba(10, 10, 10, 0.3) 50%, rgba(0, 0, 0, 0.3));
+ padding: 8px 18px;
+ border-radius: 50px;
+ border: 2px solid rgba(0, 0, 0, 0.7);
+ border-bottom: 2px solid rgba(0, 0, 0, 0.7);
+ border-top: 2px solid rgba(0, 0, 0, 1);
+ color: rgba(255, 255, 255, 0.8);
+ font-family: Helvetica, Arial, sans-serif;
+ font-weight: bold;
+ font-size: 13px;
+ text-decoration: none;
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
+}
+
+.btn:hover {
+ background: -webkit-linear-gradient(top, rgba(40, 40, 40, 0.6), rgba(35, 35, 35, 0.6) 50%, rgba(10, 10, 10, 0.8) 50%, rgba(0, 0, 0, 0.8));
+}
+
+.btn .icon {
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+ margin: 1px 8px 0 0;
+ float: left;
+}
+
+.btn-github .icon {
+ opacity: 0.6;
+ background: url("../images/blacktocat.png") 0 0 no-repeat;
+}
+
+/* Links
+ a, a:hover, a:visited
+*/
+
+a {
+ color: #63c0f5;
+ text-shadow: 0 0 5px rgba(104, 182, 255, 0.5);
+}
+
+/* Clearfix */
+
+.cf:before, .cf:after {
+ content:"";
+ display:table;
+}
+
+.cf:after {
+ clear:both;
+}
+
+.cf {
+ zoom:1;
+}
\ No newline at end of file
diff --git a/test/calculator/TestBasicCalc.java b/test/calculator/TestBasicCalc.java
deleted file mode 100644
index 7ff391a..0000000
--- a/test/calculator/TestBasicCalc.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
-package calculator;
-
-import org.junit.After;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import static org.junit.Assert.*;
-
-/**
- *
- * @author user
- */
-public class TestBasicCalc {
-
- public TestBasicCalc() {
- }
-
- @BeforeClass
- public static void setUpClass() {
- }
-
- @AfterClass
- public static void tearDownClass() {
- }
-
- @Before
- public void setUp() {
- }
-
- @After
- public void tearDown() {
- }
-
- /**
- * Test of set_Var2 method, of class basicCalc.
- */
- @Test
- public void testSet_Var2_int() {
- System.out.println("set_Var2");
- int var = 0;
- basicCalc instance = new basicCalc();
- instance.set_Var2(var);
- // TODO review the generated test code and remove the default call to fail.
- //fail("The test case is a prototype.");
- }
-}
diff --git a/test/calculator/TestBasicCalcIT.java b/test/calculator/TestBasicCalcIT.java
deleted file mode 100644
index 84d7450..0000000
--- a/test/calculator/TestBasicCalcIT.java
+++ /dev/null
@@ -1,439 +0,0 @@
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
-package calculator;
-
-import org.junit.After;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import static org.junit.Assert.*;
-
-/**
- *
- * @author user
- */
-public class TestBasicCalcIT {
-
- public TestBasicCalcIT() {
- }
-
- @BeforeClass
- public static void setUpClass() {
- }
-
- @AfterClass
- public static void tearDownClass() {
- }
-
- @Before
- public void setUp() {
- }
-
- @After
- public void tearDown() {
- }
-
-
- /**
- * Test of integer Adder.
- */
- @Test
- public void test_Integer_Adder() {
- System.out.println("Test of integer Adder");
- basicCalc instance = new basicCalc();
- int expResult = 14;
- instance.set_Var1(5);
- instance.set_Var2(9);
- instance.add();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(expResult, result1);
- assertEquals(0L, result2);
- assertEquals(0.0f, result3, 0.0f);
- assertEquals(0.0d, result4, 0.0d);
- }
-
- /**
- * Test of long Adder.
- */
- @Test
- public void test_Long_Adder() {
- System.out.println("Test of long Adder");
- basicCalc instance = new basicCalc();
- long expResult = 14L;
- instance.set_Var1(5L);
- instance.set_Var2(9L);
- instance.add();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(0, result1);
- assertEquals(expResult, result2);
- assertEquals(0.0f, result3, 0.0f);
- assertEquals(0.0d, result4, 0.0d);
- }
-
-
- /**
- * Test of float Adder.
- */
- @Test
- public void test_float_Adder() {
- System.out.println("Test of float Adder");
- basicCalc instance = new basicCalc();
- float expResult = 14.0f;
- instance.set_Var1(5.0f);
- instance.set_Var2(9.0f);
- instance.add();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(0, result1);
- assertEquals(0L, result2);
- assertEquals(expResult, result3, 0.0f);
- assertEquals(0.0d, result4, 0.0d);
- // TODO review the generated test code and remove the default call to fail.
- //fail("The test case is a prototype.");
- }
-
-
- /**
- * Test of double Adder.
- */
- @Test
- public void test_double_Adder() {
- System.out.println("Test of double Adder");
- basicCalc instance = new basicCalc();
- double expResult = 14.0d;
- instance.set_Var1(5.0d);
- instance.set_Var2(9.0d);
- instance.add();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(0, result1);
- assertEquals(0L, result2);
- assertEquals(0.0f, result3, 0.0f);
- assertEquals(expResult, result4, 0.0d);
- // TODO review the generated test code and remove the default call to fail.
- //fail("The test case is a prototype.");
- }
-
- /**
- * Test of integer Sub.
- */
- @Test
- public void test_Integer_Sub() {
- System.out.println("Test of integer Sub");
- basicCalc instance = new basicCalc();
- int expResult = -4;
- instance.set_Var1(5);
- instance.set_Var2(9);
- instance.sub();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(expResult, result1);
- assertEquals(0L, result2);
- assertEquals(0.0f, result3, 0.0f);
- assertEquals(0.0d, result4, 0.0d);
- }
-
- /**
- * Test of long Sub.
- */
- @Test
- public void test_Long_Sub() {
- System.out.println("Test of long Sub");
- basicCalc instance = new basicCalc();
- long expResult = -4L;
- instance.set_Var1(5L);
- instance.set_Var2(9L);
- instance.sub();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(0, result1);
- assertEquals(expResult, result2);
- assertEquals(0.0f, result3, 0.0f);
- assertEquals(0.0d, result4, 0.0d);
- }
-
-
- /**
- * Test of float Sub.
- */
- @Test
- public void test_float_Sub() {
- System.out.println("Test of float Sub");
- basicCalc instance = new basicCalc();
- float expResult = -4.0f;
- instance.set_Var1(5.0f);
- instance.set_Var2(9.0f);
- instance.sub();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(0, result1);
- assertEquals(0L, result2);
- assertEquals(expResult, result3, 0.0f);
- assertEquals(0.0d, result4, 0.0d);
- // TODO review the generated test code and remove the default call to fail.
- //fail("The test case is a prototype.");
- }
-
-
- /**
- * Test of double Sub.
- */
- @Test
- public void test_double_Sub() {
- System.out.println("Test of double Sub");
- basicCalc instance = new basicCalc();
- double expResult = -4.0d;
- instance.set_Var1(5.0d);
- instance.set_Var2(9.0d);
- instance.sub();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(0, result1);
- assertEquals(0L, result2);
- assertEquals(0.0f, result3, 0.0f);
- assertEquals(expResult, result4, 0.0d);
- // TODO review the generated test code and remove the default call to fail.
- //fail("The test case is a prototype.");
- }
-
- /**
- * Test of integer Mul.
- */
- @Test
- public void test_Integer_Mul() {
- System.out.println("Test of integer Mul");
- basicCalc instance = new basicCalc();
- int expResult = 45;
- instance.set_Var1(5);
- instance.set_Var2(9);
- instance.mul();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(expResult, result1);
- assertEquals(0L, result2);
- assertEquals(0.0f, result3, 0.0f);
- assertEquals(0.0d, result4, 0.0d);
- }
-
- /**
- * Test of long Mul.
- */
- @Test
- public void test_Long_Mul() {
- System.out.println("Test of long Mul");
- basicCalc instance = new basicCalc();
- long expResult = 45L;
- instance.set_Var1(5L);
- instance.set_Var2(9L);
- instance.mul();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(0, result1);
- assertEquals(expResult, result2);
- assertEquals(0.0f, result3, 0.0f);
- assertEquals(0.0d, result4, 0.0d);
- }
-
-
- /**
- * Test of float Mul.
- */
- @Test
- public void test_float_Mul() {
- System.out.println("Test of float Mul");
- basicCalc instance = new basicCalc();
- float expResult = 45.0f;
- instance.set_Var1(5.0f);
- instance.set_Var2(9.0f);
- instance.mul();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(0, result1);
- assertEquals(0L, result2);
- assertEquals(expResult, result3, 0.0f);
- assertEquals(0.0d, result4, 0.0d);
- // TODO review the generated test code and remove the default call to fail.
- //fail("The test case is a prototype.");
- }
-
-
- /**
- * Test of double Mul.
- */
- @Test
- public void test_double_Mul() {
- System.out.println("Test of double Mul");
- basicCalc instance = new basicCalc();
- double expResult = 45.0d;
- instance.set_Var1(5.0d);
- instance.set_Var2(9.0d);
- instance.mul();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(0, result1);
- assertEquals(0L, result2);
- assertEquals(0.0f, result3, 0.0f);
- assertEquals(expResult, result4, 0.0d);
- // TODO review the generated test code and remove the default call to fail.
- //fail("The test case is a prototype.");
- }
-
-
- /**
- * Test of integer Div.
- */
- @Test
- public void test_Integer_Div() {
- System.out.println("Test of integer Div");
- basicCalc instance = new basicCalc();
- int expResult = 0;
- instance.set_Var1(5);
- instance.set_Var2(9);
- instance.div();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(expResult, result1);
- assertEquals(0L, result2);
- assertEquals(0.0f, result3, 0.0f);
- assertEquals(0.0d, result4, 0.0d);
- }
-
- /**
- * Test of long Div.
- */
- @Test
- public void test_Long_Div() {
- System.out.println("Test of long Div");
- basicCalc instance = new basicCalc();
- long expResult = 0L;
- instance.set_Var1(5L);
- instance.set_Var2(9L);
- instance.div();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(0, result1);
- assertEquals(expResult, result2);
- assertEquals(0.0f, result3, 0.0f);
- assertEquals(0.0d, result4, 0.0d);
- }
-
-
- /**
- * Test of float Div.
- */
- @Test
- public void test_float_Div() {
- System.out.println("Test of float Div");
- basicCalc instance = new basicCalc();
- float expResult = 0.5555f;
- instance.set_Var1(5.0f);
- instance.set_Var2(9.0f);
- instance.div();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(0, result1);
- assertEquals(0L, result2);
- assertEquals(expResult, result3, 0.0001f);
- assertEquals(0.0d, result4, 0.0d);
- // TODO review the generated test code and remove the default call to fail.
- //fail("The test case is a prototype.");
- }
-
-
- /**
- * Test of double Div.
- */
- @Test
- public void test_double_Div() {
- System.out.println("Test of double Div");
- basicCalc instance = new basicCalc();
- double expResult = 0.5555d;
- instance.set_Var1(5.0d);
- instance.set_Var2(9.0d);
- instance.div();
- int result1 = instance.get_IErg();
- long result2 = instance.get_LErg();
- float result3 = instance.get_FErg();
- double result4 = instance.get_DErg();
- assertEquals(0, result1);
- assertEquals(0L, result2);
- assertEquals(0.0f, result3, 0.0f);
- assertEquals(expResult, result4, 0.0001d);
- // TODO review the generated test code and remove the default call to fail.
- //fail("The test case is a prototype.");
- }
-
- /**
- * Complex Test
- */
- @Test
- public void test_complex_result() {
- System.out.println("Complex Test");
- basicCalc instance = new basicCalc();
- instance.set_Var1(5);
- instance.set_Var2(9);
- instance.set_Var1(5L);
- instance.set_Var2(9L);
- instance.set_Var1(5.0f);
- instance.set_Var2(9.0f);
- instance.set_Var1(5.0d);
- instance.set_Var2(9.0d);
- instance.add();
- assertEquals(14, instance.get_IErg());
- assertEquals(14L, instance.get_LErg());
- assertEquals(14.0f, instance.get_FErg(), 0.0f);
- assertEquals(14.0d, instance.get_DErg(), 0.0d);
- instance.sub();
- assertEquals(-4, instance.get_IErg());
- assertEquals(-4L, instance.get_LErg());
- assertEquals(-4.0f, instance.get_FErg(), 0.0f);
- assertEquals(-4.0d, instance.get_DErg(), 0.0d);
- instance.mul();
- assertEquals(45, instance.get_IErg());
- assertEquals(45L, instance.get_LErg());
- assertEquals(45.0f, instance.get_FErg(), 0.0f);
- assertEquals(45.0d, instance.get_DErg(), 0.0d);
- instance.div();
- assertEquals(0, instance.get_IErg());
- assertEquals(0L, instance.get_LErg());
- assertEquals(0.5555f, instance.get_FErg(), 0.0001f);
- assertEquals(0.5555d, instance.get_DErg(), 0.0001d);
- }
-
-}
diff --git a/wercker.yml b/wercker.yml
deleted file mode 100644
index db7ee62..0000000
--- a/wercker.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-box: maven:3-jdk-7
-build:
- steps:
- - script:
- name: maven build
- code: |
- mvn clean javadoc:jar javadoc:test-jar test
\ No newline at end of file