Skip to content

Instantly share code, notes, and snippets.

@mambocab
Last active March 16, 2016 02:07
Show Gist options
  • Save mambocab/bd4354c54d0261137dfc to your computer and use it in GitHub Desktop.
Save mambocab/bd4354c54d0261137dfc to your computer and use it in GitHub Desktop.
require "spec"
module ReturnsStringList
def self.get_string_list
[] of String
end
end
describe ReturnsStringList do
describe "#get_string_list" do
it "doesn't seem to enforce types" do
ReturnsStringList.get_string_list().should eq([] of Int32)
end
end
end
@mambocab
Copy link
Author

❯ crystal spec demo.cr
.

Finished in 1.95 milliseconds
1 examples, 0 failures, 0 errors, 0 pending

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment