Skip to content

Instantly share code, notes, and snippets.

@mjago
Created July 2, 2018 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjago/1a533fa6638f80ff61cf5addcca5e180 to your computer and use it in GitHub Desktop.
Save mjago/1a533fa6638f80ff61cf5addcca5e180 to your computer and use it in GitHub Desktop.
Avoiding requiring spec_helper means test runs in 3 sec versus over a minute
#require "../../spec_helper"
require "spec"
describe "Semantic: pointer" do
it "types int pointer" do
# assert_type("a = 1; pointerof(a)") { pointer_of(int32) }
(a = 1; pointerof(a)).class.should eq(Pointer(Int32))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment