Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: ab1ec6d90b
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (22 sloc) 0.52 kB
// TODO: Write tests :)
package golightly
import (
"testing"
)
type TestCall func(int, float) (bool)
func populate_block(m MemoryBlock) {
m[0] = "hello world";
m[1] = 37;
m[2] = true;
m[3] = 3.7;
m[4] = func(a int, b float) bool { return float(a) / 10 > b };
m[5] = TestCall(m[4])(m[1], m[2]);
}
func Test_CreateBlock(t *testing.T) {
block := make(MemoryBlock, 10);
populate_block(block);
}
func Test_ConvertToMemoryBlock(t *testing.T) {
block := MemoryBlock(make([]Value, 10));
populate_block(block);
}
Jump to Line
Something went wrong with that request. Please try again.