shark/test_files/hashes.nila in nilac-0.0.4.3.3 vs shark/test_files/hashes.nila in nilac-0.0.4.3.4

- old
+ new

@@ -1,23 +1,23 @@ -# This file demonstrates several Hash features in Nila - -variable = 5 - -inst_section = { - 'cello' => 'string', - 'clarinet' => 'woodwind', - 'drum': 'percussion', - 'oboe' : 'woodwind', - 'trumpet' => 'brass', - 'violin' => 'string', - :guitar => 'string' -} - -if variable == 10 - print "Variable is 10" -elsif variable == 20 - print "Variable is 20" -else - print "Variable is something else" -end - +# This file demonstrates several Hash features in Nila + +variable = 5 + +inst_section = { + 'cello' => 'string', + 'clarinet' => 'woodwind', + 'drum': 'percussion', + 'oboe' : 'woodwind', + 'trumpet' => 'brass', + 'violin' => 'string', + :guitar => 'string' +} + +if variable == 10 + print "Variable is 10" +elsif variable == 20 + print "Variable is 20" +else + print "Variable is something else" +end + student_ages = {"Jack" => 10,"Jill" => 12,"Bob" => 14} \ No newline at end of file