Skip to content

Instantly share code, notes, and snippets.

@sevvie
Last active February 2, 2016 07:22
Show Gist options
  • Save sevvie/91df4aaf3aa306139d10 to your computer and use it in GitHub Desktop.
Save sevvie/91df4aaf3aa306139d10 to your computer and use it in GitHub Desktop.
subtest {
ok 1 + 1 eq 2, "Reality sinks in; this isn't a dream.";
is 123.WHAT.gist, "(Int)", "Integers are treated as _scalar Int objects_";
is 1.23.WHAT.gist, "(Rat)" "Rationals are treated as _scalar Rat objects_";
is "moo".WHAT.gist, "(Str)", "Strings are treated as _scalar Str objects_";
is [1, 2, 3].WHAT.gist, "(Array)", "Arrays, or Lists, are treated as _Array objects_";
is {'name' => 'Camelia'}.WHAT.gist, "(Hash)", "Hashes, or hash-maps, are treated as _Hash objects_";
}, "Yeah... I've suspended disbelief for the narrative; I'm stranded.";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment