MMQLEngine/mmql/lexer_test.go

18 lines
297 B
Go
Raw Normal View History

2022-10-20 10:04:28 +00:00
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"
` )
}