OSDN Git Service

I with OWATA
[chemicraft/chemicraft.git] / common / pcc / chemicraft / testcase / FormulaTest.java
@@ -1,9 +1,11 @@
-package pcc.chemicraft.util;
+package pcc.chemicraft.testcase;
 
 import static org.junit.Assert.*;
 
 import org.junit.Test;
 
+import pcc.chemicraft.util.Formula;
+
 public class FormulaTest extends Formula {
 
        public FormulaTest() {
@@ -12,14 +14,14 @@ public class FormulaTest extends Formula {
 
        @Test
        public void test() {
-               Formula formula = new Formula("C64Si16");
+               Formula formula = new Formula("C64Si65535");
                assertEquals("変換がおかしいです(元素)",
                                formula.getAtoms(),
                                new String[] {"C", "Si"});
 
                assertEquals("変換がおかしいです(元素数)",
                                formula.getAmonts(),
-                               new Integer[] {64, 16});
+                               new Integer[] {64, 65535});
 
        }