OSDN Git Service

Merge branch 'master' of https://scm.sourceforge.jp/gitroot/chemicraft/chemicraft
[chemicraft/chemicraft.git] / common / pcc / chemicraft / testcase / FormulaTest.java
1 /*
2 package pcc.chemicraft.testcase;
3
4 import static org.junit.Assert.*;
5
6 import org.junit.Test;
7
8 import pcc.chemicraft.util.Formula;
9
10 public class FormulaTest extends Formula {
11
12         public FormulaTest() {
13                 super("");
14         }
15
16         @Test
17         public void test() {
18                 Formula formula = new Formula("C64Si65535");
19                 assertEquals("変換がおかしいです(元素)",
20                                 formula.getAtoms(),
21                                 new String[] {"C", "Si"});
22
23                 assertEquals("変換がおかしいです(元素数)",
24                                 formula.getAmonts(),
25                                 new Integer[] {64, 65535});
26
27         }
28
29 }
30 */