mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-23 06:45:21 +01:00
Adding arithmetic operations factory
This commit is contained in:
parent
c018e24087
commit
60ca80e0e8
1 changed files with 15 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue