diff options
author | Ayke van Laethem <[email protected]> | 2019-09-22 00:16:26 +0200 |
---|---|---|
committer | Ayke <[email protected]> | 2019-09-24 18:16:43 +0200 |
commit | 582457b81e73addf09d12a848366cedfc30681a2 (patch) | |
tree | acfddc4d7d25166c4720d7d24eec923039a4dad3 /interp/interp_test.go | |
parent | 4ea1559d46d63c0021bcce72fac0bcdbd27d8d3e (diff) | |
download | tinygo-582457b81e73addf09d12a848366cedfc30681a2.tar.gz tinygo-582457b81e73addf09d12a848366cedfc30681a2.zip |
interp: implement runtime.sliceCopy
This implements the copy() built-in function. It may not work in all
cases, but should work in most cases.
This commit gets the following 3 packages to compile, according to
tinygo-site/imports/main.go:
* encoding/base32
* encoding/base64
* encoding/pem (was blocked by encoding/base64)
Diffstat (limited to 'interp/interp_test.go')
-rw-r--r-- | interp/interp_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/interp/interp_test.go b/interp/interp_test.go index b9f37e1ba..9e3808540 100644 --- a/interp/interp_test.go +++ b/interp/interp_test.go @@ -12,6 +12,7 @@ import ( func TestInterp(t *testing.T) { for _, name := range []string{ "basic", + "slice-copy", } { name := name // make tc local to this closure t.Run(name, func(t *testing.T) { |