18 lines
297 B
Go
18 lines
297 B
Go
|
package mmql
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestParse( t *testing.T ) {
|
||
|
lexer := Lexer{}
|
||
|
lexer.Parse( `
|
||
|
BUY 1 SHARES OF BTC_ETF
|
||
|
FOR 10 USD
|
||
|
FROM "MyBrokerAccount"
|
||
|
WITH LIMIT OF PURCHASING_POWER( "MyBrokerAccount", "QQQ" )
|
||
|
FOR EVERY
|
||
|
1 BTC OF USD_BTC SOLD
|
||
|
FROM "CoinBase"
|
||
|
` )
|
||
|
|
||
|
}
|