github.phpd.cn/thought-machine/please@v12.2.0+incompatible/test/go_rules/asm/asm_test.go (about) 1 // Package asm_test implements an external test on compiling Go with assembly. 2 // It has to be external since right now we don't support Go tests with assembly sources. 3 package asm_test 4 5 import ( 6 "testing" 7 8 "github.com/stretchr/testify/assert" 9 10 "test/go_rules/asm" 11 ) 12 13 func TestAssemblyAdd(t *testing.T) { 14 assert.Equal(t, 42, asm.Add(40, 2)) 15 }