Adding arithmetic operations factory

This commit is contained in:
Chris Stewart 2016-01-08 10:22:38 -06:00
parent c018e24087
commit 60ca80e0e8

View file

@ -0,0 +1,15 @@
package org.scalacoin.script.arithmetic
import org.scalatest.{MustMatchers, FlatSpec}
/**
* Created by chris on 1/8/16.
*/
class ArithmeticOperationsFactoryTest extends FlatSpec with MustMatchers with ArithmeticOperationsFactory {
"ArithmeticOperationsFactory" must "match strings with arithmetic operations" in {
fromString("OP_1ADD") must be (Some(OP_1ADD))
fromString("OP_ADD") must be (Some(OP_ADD))
fromString("OP_LESSTHAN") must be (Some(OP_LESSTHAN))
fromString("OP_RANDOM") must be (None)
}
}