nudge 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +23 -0
- data/VERSION +1 -0
- data/_spikes/couch_document_spike.rb +24 -0
- data/_spikes/nested_parsing/nested.rb +0 -0
- data/_spikes/nested_parsing/nested.treetop +6 -0
- data/_spikes/nudgeview/init.rb +19 -0
- data/_spikes/nudgeview/public/javascripts/app.js +12 -0
- data/_spikes/nudgeview/public/javascripts/jquery.js +4376 -0
- data/_spikes/nudgeview/public/javascripts/jquery.svg.js +1325 -0
- data/_spikes/nudgeview/views/index.erb +18 -0
- data/_spikes/nudgeview/views/index.haml +8 -0
- data/_spikes/simplestWeb/simplest.rb +44 -0
- data/_spikes/simplestWeb/views/main.erb +19 -0
- data/_spikes/sketches/nudgecode_spike.rb +146 -0
- data/_spikes/sketches/searchDSL_spike.rb +25 -0
- data/_spikes/sketches/search_operator_sketch_spike.txt +287 -0
- data/_spikes/sketches/searchspace_spike.rb +96 -0
- data/_spikes/symbolic_regression/activate.rb +35 -0
- data/_spikes/symbolic_regression/config/environment.rb +340 -0
- data/_spikes/symbolic_regression/config/environments/deployment.rb +0 -0
- data/_spikes/symbolic_regression/config/environments/development.rb +0 -0
- data/_spikes/symbolic_regression/experiment/objectives/programLength.rb +2 -0
- data/_spikes/symbolic_regression/experiment/objectives/summedSquaredError.rb +2 -0
- data/_spikes/symbolic_regression/lib/tasks/run.rake +0 -0
- data/doc/classes/BlockNode.html +146 -0
- data/doc/classes/BlockNode.src/M000246.html +18 -0
- data/doc/classes/BoolAndInstruction.html +218 -0
- data/doc/classes/BoolAndInstruction.src/M000003.html +15 -0
- data/doc/classes/BoolAndInstruction.src/M000004.html +16 -0
- data/doc/classes/BoolAndInstruction.src/M000005.html +15 -0
- data/doc/classes/BoolAndInstruction.src/M000006.html +15 -0
- data/doc/classes/BoolEqualQInstruction.html +218 -0
- data/doc/classes/BoolEqualQInstruction.src/M000015.html +15 -0
- data/doc/classes/BoolEqualQInstruction.src/M000016.html +16 -0
- data/doc/classes/BoolEqualQInstruction.src/M000017.html +15 -0
- data/doc/classes/BoolEqualQInstruction.src/M000018.html +15 -0
- data/doc/classes/BoolFromFloatInstruction.html +218 -0
- data/doc/classes/BoolFromFloatInstruction.src/M000071.html +15 -0
- data/doc/classes/BoolFromFloatInstruction.src/M000072.html +15 -0
- data/doc/classes/BoolFromFloatInstruction.src/M000073.html +15 -0
- data/doc/classes/BoolFromFloatInstruction.src/M000074.html +15 -0
- data/doc/classes/BoolFromIntInstruction.html +218 -0
- data/doc/classes/BoolFromIntInstruction.src/M000067.html +15 -0
- data/doc/classes/BoolFromIntInstruction.src/M000068.html +15 -0
- data/doc/classes/BoolFromIntInstruction.src/M000069.html +15 -0
- data/doc/classes/BoolFromIntInstruction.src/M000070.html +15 -0
- data/doc/classes/BoolNotInstruction.html +218 -0
- data/doc/classes/BoolNotInstruction.src/M000019.html +15 -0
- data/doc/classes/BoolNotInstruction.src/M000020.html +15 -0
- data/doc/classes/BoolNotInstruction.src/M000021.html +15 -0
- data/doc/classes/BoolNotInstruction.src/M000022.html +15 -0
- data/doc/classes/BoolOrInstruction.html +218 -0
- data/doc/classes/BoolOrInstruction.src/M000007.html +15 -0
- data/doc/classes/BoolOrInstruction.src/M000008.html +16 -0
- data/doc/classes/BoolOrInstruction.src/M000009.html +15 -0
- data/doc/classes/BoolOrInstruction.src/M000010.html +15 -0
- data/doc/classes/BoolRandomInstruction.html +218 -0
- data/doc/classes/BoolRandomInstruction.src/M000187.html +15 -0
- data/doc/classes/BoolRandomInstruction.src/M000188.html +14 -0
- data/doc/classes/BoolRandomInstruction.src/M000189.html +15 -0
- data/doc/classes/BoolRandomInstruction.src/M000190.html +15 -0
- data/doc/classes/BoolType.html +196 -0
- data/doc/classes/BoolType.src/M000240.html +16 -0
- data/doc/classes/BoolType.src/M000241.html +15 -0
- data/doc/classes/BoolType.src/M000242.html +15 -0
- data/doc/classes/BoolXorInstruction.html +218 -0
- data/doc/classes/BoolXorInstruction.src/M000011.html +15 -0
- data/doc/classes/BoolXorInstruction.src/M000012.html +16 -0
- data/doc/classes/BoolXorInstruction.src/M000013.html +15 -0
- data/doc/classes/BoolXorInstruction.src/M000014.html +15 -0
- data/doc/classes/ChannelNode.html +161 -0
- data/doc/classes/ChannelNode.src/M000249.html +15 -0
- data/doc/classes/ChannelNode.src/M000250.html +16 -0
- data/doc/classes/CodeType.html +269 -0
- data/doc/classes/CodeType.src/M000219.html +38 -0
- data/doc/classes/CodeType.src/M000220.html +16 -0
- data/doc/classes/CodeType.src/M000221.html +16 -0
- data/doc/classes/CodeType.src/M000222.html +16 -0
- data/doc/classes/CodeType.src/M000223.html +24 -0
- data/doc/classes/CodeType.src/M000224.html +42 -0
- data/doc/classes/ERCNode.html +183 -0
- data/doc/classes/ERCNode.src/M000254.html +15 -0
- data/doc/classes/ERCNode.src/M000255.html +16 -0
- data/doc/classes/ERCNode.src/M000256.html +16 -0
- data/doc/classes/ExecPopInstruction.html +218 -0
- data/doc/classes/ExecPopInstruction.src/M000075.html +15 -0
- data/doc/classes/ExecPopInstruction.src/M000076.html +14 -0
- data/doc/classes/ExecPopInstruction.src/M000077.html +15 -0
- data/doc/classes/ExecPopInstruction.src/M000078.html +14 -0
- data/doc/classes/FloatAbsInstruction.html +218 -0
- data/doc/classes/FloatAbsInstruction.src/M000107.html +15 -0
- data/doc/classes/FloatAbsInstruction.src/M000108.html +15 -0
- data/doc/classes/FloatAbsInstruction.src/M000109.html +15 -0
- data/doc/classes/FloatAbsInstruction.src/M000110.html +15 -0
- data/doc/classes/FloatAddInstruction.html +218 -0
- data/doc/classes/FloatAddInstruction.src/M000079.html +15 -0
- data/doc/classes/FloatAddInstruction.src/M000080.html +16 -0
- data/doc/classes/FloatAddInstruction.src/M000081.html +15 -0
- data/doc/classes/FloatAddInstruction.src/M000082.html +15 -0
- data/doc/classes/FloatCosineInstruction.html +218 -0
- data/doc/classes/FloatCosineInstruction.src/M000123.html +15 -0
- data/doc/classes/FloatCosineInstruction.src/M000124.html +15 -0
- data/doc/classes/FloatCosineInstruction.src/M000125.html +15 -0
- data/doc/classes/FloatCosineInstruction.src/M000126.html +15 -0
- data/doc/classes/FloatDivideInstruction.html +218 -0
- data/doc/classes/FloatDivideInstruction.src/M000091.html +15 -0
- data/doc/classes/FloatDivideInstruction.src/M000092.html +16 -0
- data/doc/classes/FloatDivideInstruction.src/M000093.html +20 -0
- data/doc/classes/FloatDivideInstruction.src/M000094.html +15 -0
- data/doc/classes/FloatFromBoolInstruction.html +218 -0
- data/doc/classes/FloatFromBoolInstruction.src/M000055.html +15 -0
- data/doc/classes/FloatFromBoolInstruction.src/M000056.html +15 -0
- data/doc/classes/FloatFromBoolInstruction.src/M000057.html +15 -0
- data/doc/classes/FloatFromBoolInstruction.src/M000058.html +15 -0
- data/doc/classes/FloatFromIntInstruction.html +218 -0
- data/doc/classes/FloatFromIntInstruction.src/M000063.html +15 -0
- data/doc/classes/FloatFromIntInstruction.src/M000064.html +15 -0
- data/doc/classes/FloatFromIntInstruction.src/M000065.html +15 -0
- data/doc/classes/FloatFromIntInstruction.src/M000066.html +15 -0
- data/doc/classes/FloatGreaterThanQInstruction.html +218 -0
- data/doc/classes/FloatGreaterThanQInstruction.src/M000035.html +15 -0
- data/doc/classes/FloatGreaterThanQInstruction.src/M000036.html +16 -0
- data/doc/classes/FloatGreaterThanQInstruction.src/M000037.html +15 -0
- data/doc/classes/FloatGreaterThanQInstruction.src/M000038.html +15 -0
- data/doc/classes/FloatIfInstruction.html +218 -0
- data/doc/classes/FloatIfInstruction.src/M000047.html +16 -0
- data/doc/classes/FloatIfInstruction.src/M000048.html +15 -0
- data/doc/classes/FloatIfInstruction.src/M000049.html +14 -0
- data/doc/classes/FloatIfInstruction.src/M000050.html +17 -0
- data/doc/classes/FloatLessThanQInstruction.html +218 -0
- data/doc/classes/FloatLessThanQInstruction.src/M000039.html +15 -0
- data/doc/classes/FloatLessThanQInstruction.src/M000040.html +16 -0
- data/doc/classes/FloatLessThanQInstruction.src/M000041.html +15 -0
- data/doc/classes/FloatLessThanQInstruction.src/M000042.html +15 -0
- data/doc/classes/FloatMaxInstruction.html +218 -0
- data/doc/classes/FloatMaxInstruction.src/M000095.html +15 -0
- data/doc/classes/FloatMaxInstruction.src/M000096.html +16 -0
- data/doc/classes/FloatMaxInstruction.src/M000097.html +15 -0
- data/doc/classes/FloatMaxInstruction.src/M000098.html +15 -0
- data/doc/classes/FloatMinInstruction.html +218 -0
- data/doc/classes/FloatMinInstruction.src/M000099.html +15 -0
- data/doc/classes/FloatMinInstruction.src/M000100.html +16 -0
- data/doc/classes/FloatMinInstruction.src/M000101.html +15 -0
- data/doc/classes/FloatMinInstruction.src/M000102.html +15 -0
- data/doc/classes/FloatMultiplyInstruction.html +218 -0
- data/doc/classes/FloatMultiplyInstruction.src/M000083.html +15 -0
- data/doc/classes/FloatMultiplyInstruction.src/M000084.html +16 -0
- data/doc/classes/FloatMultiplyInstruction.src/M000085.html +15 -0
- data/doc/classes/FloatMultiplyInstruction.src/M000086.html +15 -0
- data/doc/classes/FloatNegativeInstruction.html +218 -0
- data/doc/classes/FloatNegativeInstruction.src/M000103.html +15 -0
- data/doc/classes/FloatNegativeInstruction.src/M000104.html +15 -0
- data/doc/classes/FloatNegativeInstruction.src/M000105.html +15 -0
- data/doc/classes/FloatNegativeInstruction.src/M000106.html +15 -0
- data/doc/classes/FloatPowerInstruction.html +218 -0
- data/doc/classes/FloatPowerInstruction.src/M000111.html +15 -0
- data/doc/classes/FloatPowerInstruction.src/M000112.html +16 -0
- data/doc/classes/FloatPowerInstruction.src/M000113.html +20 -0
- data/doc/classes/FloatPowerInstruction.src/M000114.html +15 -0
- data/doc/classes/FloatRandomInstruction.html +218 -0
- data/doc/classes/FloatRandomInstruction.src/M000191.html +15 -0
- data/doc/classes/FloatRandomInstruction.src/M000192.html +14 -0
- data/doc/classes/FloatRandomInstruction.src/M000193.html +15 -0
- data/doc/classes/FloatRandomInstruction.src/M000194.html +15 -0
- data/doc/classes/FloatSineInstruction.html +218 -0
- data/doc/classes/FloatSineInstruction.src/M000119.html +15 -0
- data/doc/classes/FloatSineInstruction.src/M000120.html +15 -0
- data/doc/classes/FloatSineInstruction.src/M000121.html +15 -0
- data/doc/classes/FloatSineInstruction.src/M000122.html +15 -0
- data/doc/classes/FloatSqrtInstruction.html +218 -0
- data/doc/classes/FloatSqrtInstruction.src/M000115.html +15 -0
- data/doc/classes/FloatSqrtInstruction.src/M000116.html +15 -0
- data/doc/classes/FloatSqrtInstruction.src/M000117.html +19 -0
- data/doc/classes/FloatSqrtInstruction.src/M000118.html +15 -0
- data/doc/classes/FloatSubtractInstruction.html +218 -0
- data/doc/classes/FloatSubtractInstruction.src/M000087.html +15 -0
- data/doc/classes/FloatSubtractInstruction.src/M000088.html +16 -0
- data/doc/classes/FloatSubtractInstruction.src/M000089.html +15 -0
- data/doc/classes/FloatSubtractInstruction.src/M000090.html +15 -0
- data/doc/classes/FloatTangentInstruction.html +218 -0
- data/doc/classes/FloatTangentInstruction.src/M000127.html +15 -0
- data/doc/classes/FloatTangentInstruction.src/M000128.html +15 -0
- data/doc/classes/FloatTangentInstruction.src/M000129.html +15 -0
- data/doc/classes/FloatTangentInstruction.src/M000130.html +15 -0
- data/doc/classes/FloatType.html +196 -0
- data/doc/classes/FloatType.src/M000243.html +19 -0
- data/doc/classes/FloatType.src/M000244.html +15 -0
- data/doc/classes/FloatType.src/M000245.html +15 -0
- data/doc/classes/Helpers.html +161 -0
- data/doc/classes/Helpers.src/M000343.html +21 -0
- data/doc/classes/Helpers.src/M000344.html +24 -0
- data/doc/classes/Instruction/InstructionMethodError.html +110 -0
- data/doc/classes/Instruction/NaNResultError.html +110 -0
- data/doc/classes/Instruction/NotEnoughStackItems.html +110 -0
- data/doc/classes/Instruction.html +500 -0
- data/doc/classes/Instruction.src/M000131.html +17 -0
- data/doc/classes/Instruction.src/M000132.html +15 -0
- data/doc/classes/Instruction.src/M000133.html +15 -0
- data/doc/classes/Instruction.src/M000134.html +15 -0
- data/doc/classes/Instruction.src/M000135.html +15 -0
- data/doc/classes/Instruction.src/M000136.html +15 -0
- data/doc/classes/Instruction.src/M000137.html +15 -0
- data/doc/classes/Instruction.src/M000138.html +15 -0
- data/doc/classes/Instruction.src/M000139.html +22 -0
- data/doc/classes/Instruction.src/M000140.html +15 -0
- data/doc/classes/Instruction.src/M000141.html +25 -0
- data/doc/classes/Instruction.src/M000142.html +15 -0
- data/doc/classes/Instruction.src/M000143.html +15 -0
- data/doc/classes/Instruction.src/M000144.html +15 -0
- data/doc/classes/Instruction.src/M000145.html +15 -0
- data/doc/classes/Instruction.src/M000146.html +15 -0
- data/doc/classes/InstructionNode.html +161 -0
- data/doc/classes/InstructionNode.src/M000247.html +15 -0
- data/doc/classes/InstructionNode.src/M000248.html +16 -0
- data/doc/classes/IntAbsInstruction.html +218 -0
- data/doc/classes/IntAbsInstruction.src/M000175.html +15 -0
- data/doc/classes/IntAbsInstruction.src/M000176.html +15 -0
- data/doc/classes/IntAbsInstruction.src/M000177.html +15 -0
- data/doc/classes/IntAbsInstruction.src/M000178.html +15 -0
- data/doc/classes/IntAddInstruction.html +218 -0
- data/doc/classes/IntAddInstruction.src/M000147.html +15 -0
- data/doc/classes/IntAddInstruction.src/M000148.html +16 -0
- data/doc/classes/IntAddInstruction.src/M000149.html +15 -0
- data/doc/classes/IntAddInstruction.src/M000150.html +15 -0
- data/doc/classes/IntDepthInstruction.html +218 -0
- data/doc/classes/IntDepthInstruction.src/M000211.html +15 -0
- data/doc/classes/IntDepthInstruction.src/M000212.html +14 -0
- data/doc/classes/IntDepthInstruction.src/M000213.html +15 -0
- data/doc/classes/IntDepthInstruction.src/M000214.html +15 -0
- data/doc/classes/IntDivideInstruction.html +218 -0
- data/doc/classes/IntDivideInstruction.src/M000155.html +15 -0
- data/doc/classes/IntDivideInstruction.src/M000156.html +16 -0
- data/doc/classes/IntDivideInstruction.src/M000157.html +20 -0
- data/doc/classes/IntDivideInstruction.src/M000158.html +15 -0
- data/doc/classes/IntDuplicateInstruction.html +218 -0
- data/doc/classes/IntDuplicateInstruction.src/M000203.html +15 -0
- data/doc/classes/IntDuplicateInstruction.src/M000204.html +15 -0
- data/doc/classes/IntDuplicateInstruction.src/M000205.html +15 -0
- data/doc/classes/IntDuplicateInstruction.src/M000206.html +15 -0
- data/doc/classes/IntEqualQInstruction.html +218 -0
- data/doc/classes/IntEqualQInstruction.src/M000023.html +15 -0
- data/doc/classes/IntEqualQInstruction.src/M000024.html +16 -0
- data/doc/classes/IntEqualQInstruction.src/M000025.html +15 -0
- data/doc/classes/IntEqualQInstruction.src/M000026.html +15 -0
- data/doc/classes/IntFlushInstruction.html +218 -0
- data/doc/classes/IntFlushInstruction.src/M000215.html +15 -0
- data/doc/classes/IntFlushInstruction.src/M000216.html +14 -0
- data/doc/classes/IntFlushInstruction.src/M000217.html +14 -0
- data/doc/classes/IntFlushInstruction.src/M000218.html +15 -0
- data/doc/classes/IntFromBoolInstruction.html +218 -0
- data/doc/classes/IntFromBoolInstruction.src/M000051.html +15 -0
- data/doc/classes/IntFromBoolInstruction.src/M000052.html +15 -0
- data/doc/classes/IntFromBoolInstruction.src/M000053.html +15 -0
- data/doc/classes/IntFromBoolInstruction.src/M000054.html +15 -0
- data/doc/classes/IntFromFloatInstruction.html +218 -0
- data/doc/classes/IntFromFloatInstruction.src/M000059.html +15 -0
- data/doc/classes/IntFromFloatInstruction.src/M000060.html +15 -0
- data/doc/classes/IntFromFloatInstruction.src/M000061.html +15 -0
- data/doc/classes/IntFromFloatInstruction.src/M000062.html +15 -0
- data/doc/classes/IntGreaterThanQInstruction.html +218 -0
- data/doc/classes/IntGreaterThanQInstruction.src/M000031.html +15 -0
- data/doc/classes/IntGreaterThanQInstruction.src/M000032.html +16 -0
- data/doc/classes/IntGreaterThanQInstruction.src/M000033.html +15 -0
- data/doc/classes/IntGreaterThanQInstruction.src/M000034.html +15 -0
- data/doc/classes/IntIfInstruction.html +218 -0
- data/doc/classes/IntIfInstruction.src/M000043.html +16 -0
- data/doc/classes/IntIfInstruction.src/M000044.html +15 -0
- data/doc/classes/IntIfInstruction.src/M000045.html +14 -0
- data/doc/classes/IntIfInstruction.src/M000046.html +17 -0
- data/doc/classes/IntLessThanQInstruction.html +218 -0
- data/doc/classes/IntLessThanQInstruction.src/M000027.html +15 -0
- data/doc/classes/IntLessThanQInstruction.src/M000028.html +16 -0
- data/doc/classes/IntLessThanQInstruction.src/M000029.html +15 -0
- data/doc/classes/IntLessThanQInstruction.src/M000030.html +15 -0
- data/doc/classes/IntMaxInstruction.html +218 -0
- data/doc/classes/IntMaxInstruction.src/M000167.html +15 -0
- data/doc/classes/IntMaxInstruction.src/M000168.html +16 -0
- data/doc/classes/IntMaxInstruction.src/M000169.html +16 -0
- data/doc/classes/IntMaxInstruction.src/M000170.html +15 -0
- data/doc/classes/IntMinInstruction.html +218 -0
- data/doc/classes/IntMinInstruction.src/M000171.html +15 -0
- data/doc/classes/IntMinInstruction.src/M000172.html +16 -0
- data/doc/classes/IntMinInstruction.src/M000173.html +16 -0
- data/doc/classes/IntMinInstruction.src/M000174.html +15 -0
- data/doc/classes/IntModuloInstruction.html +218 -0
- data/doc/classes/IntModuloInstruction.src/M000163.html +15 -0
- data/doc/classes/IntModuloInstruction.src/M000164.html +16 -0
- data/doc/classes/IntModuloInstruction.src/M000165.html +20 -0
- data/doc/classes/IntModuloInstruction.src/M000166.html +15 -0
- data/doc/classes/IntMultiplyInstruction.html +218 -0
- data/doc/classes/IntMultiplyInstruction.src/M000151.html +15 -0
- data/doc/classes/IntMultiplyInstruction.src/M000152.html +16 -0
- data/doc/classes/IntMultiplyInstruction.src/M000153.html +15 -0
- data/doc/classes/IntMultiplyInstruction.src/M000154.html +15 -0
- data/doc/classes/IntNegativeInstruction.html +218 -0
- data/doc/classes/IntNegativeInstruction.src/M000179.html +15 -0
- data/doc/classes/IntNegativeInstruction.src/M000180.html +15 -0
- data/doc/classes/IntNegativeInstruction.src/M000181.html +15 -0
- data/doc/classes/IntNegativeInstruction.src/M000182.html +15 -0
- data/doc/classes/IntPopInstruction.html +218 -0
- data/doc/classes/IntPopInstruction.src/M000195.html +15 -0
- data/doc/classes/IntPopInstruction.src/M000196.html +15 -0
- data/doc/classes/IntPopInstruction.src/M000197.html +14 -0
- data/doc/classes/IntPopInstruction.src/M000198.html +14 -0
- data/doc/classes/IntRandomInstruction.html +218 -0
- data/doc/classes/IntRandomInstruction.src/M000183.html +15 -0
- data/doc/classes/IntRandomInstruction.src/M000184.html +14 -0
- data/doc/classes/IntRandomInstruction.src/M000185.html +15 -0
- data/doc/classes/IntRandomInstruction.src/M000186.html +15 -0
- data/doc/classes/IntRotateInstruction.html +218 -0
- data/doc/classes/IntRotateInstruction.src/M000207.html +15 -0
- data/doc/classes/IntRotateInstruction.src/M000208.html +17 -0
- data/doc/classes/IntRotateInstruction.src/M000209.html +14 -0
- data/doc/classes/IntRotateInstruction.src/M000210.html +17 -0
- data/doc/classes/IntSubtractInstruction.html +218 -0
- data/doc/classes/IntSubtractInstruction.src/M000159.html +15 -0
- data/doc/classes/IntSubtractInstruction.src/M000160.html +16 -0
- data/doc/classes/IntSubtractInstruction.src/M000161.html +16 -0
- data/doc/classes/IntSubtractInstruction.src/M000162.html +15 -0
- data/doc/classes/IntSwapInstruction.html +218 -0
- data/doc/classes/IntSwapInstruction.src/M000199.html +15 -0
- data/doc/classes/IntSwapInstruction.src/M000200.html +16 -0
- data/doc/classes/IntSwapInstruction.src/M000201.html +14 -0
- data/doc/classes/IntSwapInstruction.src/M000202.html +16 -0
- data/doc/classes/IntType.html +240 -0
- data/doc/classes/IntType.src/M000235.html +15 -0
- data/doc/classes/IntType.src/M000236.html +15 -0
- data/doc/classes/IntType.src/M000237.html +18 -0
- data/doc/classes/IntType.src/M000238.html +15 -0
- data/doc/classes/IntType.src/M000239.html +15 -0
- data/doc/classes/LiteralNode.html +183 -0
- data/doc/classes/LiteralNode.src/M000251.html +15 -0
- data/doc/classes/LiteralNode.src/M000252.html +16 -0
- data/doc/classes/LiteralNode.src/M000253.html +16 -0
- data/doc/classes/Nudge/Channel.html +437 -0
- data/doc/classes/Nudge/Channel.src/M000286.html +15 -0
- data/doc/classes/Nudge/Channel.src/M000287.html +19 -0
- data/doc/classes/Nudge/Channel.src/M000288.html +15 -0
- data/doc/classes/Nudge/Channel.src/M000289.html +15 -0
- data/doc/classes/Nudge/Channel.src/M000290.html +15 -0
- data/doc/classes/Nudge/Channel.src/M000291.html +19 -0
- data/doc/classes/Nudge/Channel.src/M000292.html +19 -0
- data/doc/classes/Nudge/Channel.src/M000293.html +17 -0
- data/doc/classes/Nudge/Channel.src/M000294.html +15 -0
- data/doc/classes/Nudge/Channel.src/M000295.html +20 -0
- data/doc/classes/Nudge/Channel.src/M000296.html +15 -0
- data/doc/classes/Nudge/Channel.src/M000297.html +17 -0
- data/doc/classes/Nudge/Channel.src/M000298.html +15 -0
- data/doc/classes/Nudge/CodeBlock.html +331 -0
- data/doc/classes/Nudge/CodeBlock.src/M000263.html +15 -0
- data/doc/classes/Nudge/CodeBlock.src/M000264.html +15 -0
- data/doc/classes/Nudge/CodeBlock.src/M000265.html +15 -0
- data/doc/classes/Nudge/CodeBlock.src/M000266.html +15 -0
- data/doc/classes/Nudge/CodeBlock.src/M000267.html +15 -0
- data/doc/classes/Nudge/CodeBlock.src/M000268.html +17 -0
- data/doc/classes/Nudge/CodeBlock.src/M000269.html +20 -0
- data/doc/classes/Nudge/CodeBlock.src/M000270.html +15 -0
- data/doc/classes/Nudge/CodeBlock.src/M000271.html +19 -0
- data/doc/classes/Nudge/DeadLocation.html +152 -0
- data/doc/classes/Nudge/DeadLocation.src/M000334.html +17 -0
- data/doc/classes/Nudge/Erc.html +335 -0
- data/doc/classes/Nudge/Erc.src/M000278.html +16 -0
- data/doc/classes/Nudge/Erc.src/M000279.html +15 -0
- data/doc/classes/Nudge/Erc.src/M000280.html +15 -0
- data/doc/classes/Nudge/Erc.src/M000281.html +15 -0
- data/doc/classes/Nudge/Erc.src/M000282.html +18 -0
- data/doc/classes/Nudge/Erc.src/M000283.html +15 -0
- data/doc/classes/Nudge/Erc.src/M000284.html +17 -0
- data/doc/classes/Nudge/Erc.src/M000285.html +15 -0
- data/doc/classes/Nudge/Individual.html +313 -0
- data/doc/classes/Nudge/Individual.src/M000314.html +21 -0
- data/doc/classes/Nudge/Individual.src/M000315.html +15 -0
- data/doc/classes/Nudge/Individual.src/M000316.html +15 -0
- data/doc/classes/Nudge/Individual.src/M000317.html +17 -0
- data/doc/classes/Nudge/Individual.src/M000318.html +25 -0
- data/doc/classes/Nudge/InstructionPoint/InstructionNotFoundError.html +110 -0
- data/doc/classes/Nudge/InstructionPoint.html +350 -0
- data/doc/classes/Nudge/InstructionPoint.src/M000299.html +15 -0
- data/doc/classes/Nudge/InstructionPoint.src/M000300.html +15 -0
- data/doc/classes/Nudge/InstructionPoint.src/M000301.html +17 -0
- data/doc/classes/Nudge/InstructionPoint.src/M000302.html +15 -0
- data/doc/classes/Nudge/InstructionPoint.src/M000303.html +17 -0
- data/doc/classes/Nudge/InstructionPoint.src/M000304.html +17 -0
- data/doc/classes/Nudge/InstructionPoint.src/M000305.html +17 -0
- data/doc/classes/Nudge/InstructionPoint.src/M000306.html +15 -0
- data/doc/classes/Nudge/Interpreter.html +369 -0
- data/doc/classes/Nudge/Interpreter.src/M000257.html +20 -0
- data/doc/classes/Nudge/Interpreter.src/M000258.html +19 -0
- data/doc/classes/Nudge/Interpreter.src/M000259.html +15 -0
- data/doc/classes/Nudge/Interpreter.src/M000260.html +19 -0
- data/doc/classes/Nudge/Interpreter.src/M000261.html +17 -0
- data/doc/classes/Nudge/LiteralPoint.html +291 -0
- data/doc/classes/Nudge/LiteralPoint.src/M000272.html +16 -0
- data/doc/classes/Nudge/LiteralPoint.src/M000273.html +15 -0
- data/doc/classes/Nudge/LiteralPoint.src/M000274.html +15 -0
- data/doc/classes/Nudge/LiteralPoint.src/M000275.html +18 -0
- data/doc/classes/Nudge/LiteralPoint.src/M000276.html +17 -0
- data/doc/classes/Nudge/LiteralPoint.src/M000277.html +15 -0
- data/doc/classes/Nudge/Location.html +525 -0
- data/doc/classes/Nudge/Location.src/M000319.html +19 -0
- data/doc/classes/Nudge/Location.src/M000320.html +15 -0
- data/doc/classes/Nudge/Location.src/M000321.html +26 -0
- data/doc/classes/Nudge/Location.src/M000322.html +15 -0
- data/doc/classes/Nudge/Location.src/M000323.html +20 -0
- data/doc/classes/Nudge/Location.src/M000324.html +16 -0
- data/doc/classes/Nudge/Location.src/M000325.html +25 -0
- data/doc/classes/Nudge/Location.src/M000326.html +15 -0
- data/doc/classes/Nudge/Location.src/M000327.html +21 -0
- data/doc/classes/Nudge/Location.src/M000328.html +16 -0
- data/doc/classes/Nudge/Location.src/M000329.html +15 -0
- data/doc/classes/Nudge/Location.src/M000330.html +16 -0
- data/doc/classes/Nudge/Location.src/M000331.html +20 -0
- data/doc/classes/Nudge/Location.src/M000332.html +17 -0
- data/doc/classes/Nudge/Location.src/M000333.html +17 -0
- data/doc/classes/Nudge/NondominatedSubset.html +196 -0
- data/doc/classes/Nudge/NondominatedSubset.src/M000005.html +19 -0
- data/doc/classes/Nudge/NondominatedSubset.src/M000006.html +19 -0
- data/doc/classes/Nudge/NondominatedSubset.src/M000007.html +25 -0
- data/doc/classes/Nudge/NondominatedSubset.src/M000339.html +19 -0
- data/doc/classes/Nudge/NondominatedSubset.src/M000340.html +19 -0
- data/doc/classes/Nudge/NondominatedSubset.src/M000341.html +25 -0
- data/doc/classes/Nudge/PopulationResample.html +175 -0
- data/doc/classes/Nudge/PopulationResample.src/M000003.html +22 -0
- data/doc/classes/Nudge/PopulationResample.src/M000337.html +22 -0
- data/doc/classes/Nudge/ProgramPoint.html +148 -0
- data/doc/classes/Nudge/ProgramPoint.src/M000262.html +15 -0
- data/doc/classes/Nudge/RandomGuess.html +176 -0
- data/doc/classes/Nudge/RandomGuess.src/M000002.html +21 -0
- data/doc/classes/Nudge/RandomGuess.src/M000336.html +21 -0
- data/doc/classes/Nudge/ResampleValues.html +169 -0
- data/doc/classes/Nudge/ResampleValues.src/M000004.html +36 -0
- data/doc/classes/Nudge/ResampleValues.src/M000338.html +36 -0
- data/doc/classes/Nudge/SearchOperator.html +175 -0
- data/doc/classes/Nudge/SearchOperator.src/M000001.html +15 -0
- data/doc/classes/Nudge/SearchOperator.src/M000335.html +15 -0
- data/doc/classes/Nudge/Stack.html +350 -0
- data/doc/classes/Nudge/Stack.src/M000307.html +15 -0
- data/doc/classes/Nudge/Stack.src/M000308.html +15 -0
- data/doc/classes/Nudge/Stack.src/M000309.html +18 -0
- data/doc/classes/Nudge/Stack.src/M000310.html +15 -0
- data/doc/classes/Nudge/Stack.src/M000311.html +15 -0
- data/doc/classes/Nudge/Stack.src/M000312.html +15 -0
- data/doc/classes/Nudge/Stack.src/M000313.html +15 -0
- data/doc/classes/Nudge/UniformBackboneCrossover.html +152 -0
- data/doc/classes/Nudge/UniformBackboneCrossover.src/M000008.html +35 -0
- data/doc/classes/Nudge/UniformBackboneCrossover.src/M000342.html +35 -0
- data/doc/classes/Nudge.html +174 -0
- data/doc/classes/NudgeType.html +363 -0
- data/doc/classes/NudgeType.src/M000225.html +17 -0
- data/doc/classes/NudgeType.src/M000226.html +15 -0
- data/doc/classes/NudgeType.src/M000227.html +15 -0
- data/doc/classes/NudgeType.src/M000228.html +15 -0
- data/doc/classes/NudgeType.src/M000229.html +15 -0
- data/doc/classes/NudgeType.src/M000230.html +15 -0
- data/doc/classes/NudgeType.src/M000231.html +15 -0
- data/doc/classes/NudgeType.src/M000232.html +15 -0
- data/doc/classes/NudgeType.src/M000233.html +15 -0
- data/doc/classes/NudgeType.src/M000234.html +15 -0
- data/doc/created.rid +1 -0
- data/doc/files/lib/instructions/bool_basics_rb.html +90 -0
- data/doc/files/lib/instructions/comparisons_rb.html +90 -0
- data/doc/files/lib/instructions/conditionals_rb.html +90 -0
- data/doc/files/lib/instructions/conversions_rb.html +90 -0
- data/doc/files/lib/instructions/exec_rb.html +90 -0
- data/doc/files/lib/instructions/float_arithmetic_rb.html +90 -0
- data/doc/files/lib/instructions/float_transcendental_rb.html +90 -0
- data/doc/files/lib/instructions/infrastructure_rb.html +100 -0
- data/doc/files/lib/instructions/int_arithmetic_rb.html +90 -0
- data/doc/files/lib/instructions/random_value_rb.html +90 -0
- data/doc/files/lib/instructions/stack_manipulation_rb.html +90 -0
- data/doc/files/lib/interpreter/grammars/nudge_language_helpers_rb.html +97 -0
- data/doc/files/lib/interpreter/grammars/nudge_language_treetop.html +180 -0
- data/doc/files/lib/interpreter/interpreter_rb.html +90 -0
- data/doc/files/lib/interpreter/programPoints_rb.html +90 -0
- data/doc/files/lib/interpreter/stack_rb.html +90 -0
- data/doc/files/lib/interpreter/types/codeType_rb.html +157 -0
- data/doc/files/lib/interpreter/types/codeType_rb.src/M000001.html +15 -0
- data/doc/files/lib/interpreter/types/codeType_rb.src/M000002.html +15 -0
- data/doc/files/lib/interpreter/types/pushTypes_rb.html +107 -0
- data/doc/files/lib/nudge_rb.html +152 -0
- data/doc/files/lib/search/evaluators/structural_complexity_rb.html +90 -0
- data/doc/files/lib/search/helpers_rb.html +90 -0
- data/doc/files/lib/search/individual/individual_rb.html +90 -0
- data/doc/files/lib/search/locations/location_rb.html +100 -0
- data/doc/files/lib/search/operators/basic_operators_rb.html +90 -0
- data/doc/fr_class_index.html +191 -0
- data/doc/fr_file_index.html +71 -0
- data/doc/fr_method_index.html +711 -0
- data/doc/index.html +21 -0
- data/doc/rdoc-style.css +299 -0
- data/features/parser_recognizes_nudge_language.feature +9 -0
- data/lib/instructions/bool_basics.rb +85 -0
- data/lib/instructions/code_basics.rb +14 -0
- data/lib/instructions/comparisons.rb +152 -0
- data/lib/instructions/conditionals.rb +44 -0
- data/lib/instructions/conversions.rb +94 -0
- data/lib/instructions/exec.rb +154 -0
- data/lib/instructions/float_arithmetic.rb +201 -0
- data/lib/instructions/float_transcendental.rb +47 -0
- data/lib/instructions/infrastructure.rb +84 -0
- data/lib/instructions/int_arithmetic.rb +160 -0
- data/lib/instructions/name_basics.rb +44 -0
- data/lib/instructions/name_bindings.rb +65 -0
- data/lib/instructions/random_value.rb +43 -0
- data/lib/instructions/stack_manipulation.rb +739 -0
- data/lib/interpreter/grammars/nudge_language.treetop +83 -0
- data/lib/interpreter/grammars/nudge_language_helpers.rb +64 -0
- data/lib/interpreter/interpreter.rb +176 -0
- data/lib/interpreter/programPoints.rb +236 -0
- data/lib/interpreter/stack.rb +39 -0
- data/lib/interpreter/types/codeType.rb +108 -0
- data/lib/interpreter/types/pushTypes.rb +102 -0
- data/lib/nudge.rb +38 -0
- data/lib/search/experiments/experiment.rb +53 -0
- data/lib/search/helpers.rb +22 -0
- data/lib/search/individual/batch.rb +25 -0
- data/lib/search/individual/individual.rb +147 -0
- data/lib/search/operators/basic_operators.rb +230 -0
- data/lib/search/operators/evaluators.rb +107 -0
- data/lib/search/operators/samplers_and_selectors.rb +123 -0
- data/lib/search/stations/station.rb +147 -0
- data/push_language_coverage.md +177 -0
- data/readme.md +19 -0
- data/spec/data/couchdb_spec.rb +2 -0
- data/spec/fixtures/just_block.example +1 -0
- data/spec/fixtures/just_block_with_newline.example +1 -0
- data/spec/fixtures/long_arithmetic.example +7 -0
- data/spec/fixtures/one_line_instr.example +1 -0
- data/spec/fixtures/untidy1.example +20 -0
- data/spec/fixtures/untidy1fixed.example +12 -0
- data/spec/instructions/bool_basics_spec.rb +97 -0
- data/spec/instructions/bool_stack_spec.rb +391 -0
- data/spec/instructions/code_basics_spec.rb +43 -0
- data/spec/instructions/code_stack_spec.rb +382 -0
- data/spec/instructions/comparisons_spec.rb +486 -0
- data/spec/instructions/conditionals_spec.rb +162 -0
- data/spec/instructions/conversions_spec.rb +92 -0
- data/spec/instructions/exec_spec.rb +883 -0
- data/spec/instructions/float_calculations_spec.rb +148 -0
- data/spec/instructions/float_stack_spec.rb +382 -0
- data/spec/instructions/float_transcendental_spec.rb +89 -0
- data/spec/instructions/instruction_class_spec.rb +9 -0
- data/spec/instructions/int_calculations_spec.rb +125 -0
- data/spec/instructions/int_stack_spec.rb +398 -0
- data/spec/instructions/name_basics_spec.rb +158 -0
- data/spec/instructions/name_bindings_spec.rb +257 -0
- data/spec/instructions/name_stack_spec.rb +382 -0
- data/spec/instructions/random_values_spec.rb +68 -0
- data/spec/integration/search_integration.rb +67 -0
- data/spec/interpreter/channel_spec.rb +92 -0
- data/spec/interpreter/codeblock_spec.rb +135 -0
- data/spec/interpreter/codetype_spec.rb +257 -0
- data/spec/interpreter/erc_spec.rb +130 -0
- data/spec/interpreter/instruction_spec.rb +97 -0
- data/spec/interpreter/interpreter_spec.rb +266 -0
- data/spec/interpreter/literal_spec.rb +94 -0
- data/spec/interpreter/parser_spec.rb +324 -0
- data/spec/interpreter/stack_spec.rb +81 -0
- data/spec/interpreter/types_spec.rb +102 -0
- data/spec/search/batch_spec.rb +30 -0
- data/spec/search/experiments/experiment_spec.rb +101 -0
- data/spec/search/helpers_spec.rb +59 -0
- data/spec/search/individual_spec.rb +356 -0
- data/spec/search/operators/any_one_sampler_spec.rb +40 -0
- data/spec/search/operators/dominated_quantile_spec.rb +111 -0
- data/spec/search/operators/duplicate_genomes_spec.rb +35 -0
- data/spec/search/operators/evaluators/program_point_evaluator_spec.rb +43 -0
- data/spec/search/operators/evaluators/test_case_evaluator_spec.rb +133 -0
- data/spec/search/operators/infrastructure_spec.rb +47 -0
- data/spec/search/operators/most_dominated_subset_spec.rb +47 -0
- data/spec/search/operators/nondominated_subset_spec.rb +97 -0
- data/spec/search/operators/pointCrossover_spec.rb +55 -0
- data/spec/search/operators/pointDeletion_spec.rb +57 -0
- data/spec/search/operators/pointMutation_spec.rb +71 -0
- data/spec/search/operators/random_guess_spec.rb +51 -0
- data/spec/search/operators/resample_and_clone_spec.rb +50 -0
- data/spec/search/operators/resample_values_spec.rb +126 -0
- data/spec/search/operators/sizePreservingMutation_spec.rb +2 -0
- data/spec/search/operators/uniformBackboneCrossover_spec.rb +63 -0
- data/spec/search/stations/station_spec.rb +496 -0
- data/spec/spec_helper.rb +11 -0
- metadata +738 -0
@@ -0,0 +1,257 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "/../spec_helper")
|
2
|
+
include Nudge
|
3
|
+
|
4
|
+
describe IntDefineInstruction do
|
5
|
+
before(:each) do
|
6
|
+
@context = Interpreter.new
|
7
|
+
@i1 = IntDefineInstruction.new(@context)
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should check its context is set" do
|
11
|
+
@i1.context.should == @context
|
12
|
+
end
|
13
|
+
|
14
|
+
[:preconditions?, :setup, :derive, :cleanup].each do |methodName|
|
15
|
+
it "should respond to \##{methodName}" do
|
16
|
+
@i1.should respond_to(methodName)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
describe "\#go" do
|
21
|
+
before(:each) do
|
22
|
+
@i1 = IntDefineInstruction.new(@context)
|
23
|
+
@context.clear_stacks
|
24
|
+
@name1 = ChannelPoint.new("xyz")
|
25
|
+
end
|
26
|
+
|
27
|
+
describe "\#preconditions?" do
|
28
|
+
it "should check that there is one :name and one :int" do
|
29
|
+
@context.stacks[:name].push(@name1)
|
30
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 123))
|
31
|
+
@i1.preconditions?.should == true
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
describe "\#cleanup" do
|
36
|
+
before(:each) do
|
37
|
+
@context.clear_stacks
|
38
|
+
@context.reset_names
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should bind the top :int to the top :name" do
|
42
|
+
@context.stacks[:name].push(@name1)
|
43
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 123))
|
44
|
+
@i1.go
|
45
|
+
@context.stacks[:name].depth.should == 0
|
46
|
+
@context.stacks[:int].depth.should == 0
|
47
|
+
@context.names.length.should_not == 0
|
48
|
+
@context.names["xyz"].value.should == 123
|
49
|
+
end
|
50
|
+
|
51
|
+
it "should overwrite the binding if it already exists" do
|
52
|
+
@context.bind_name("xyz", LiteralPoint.new("bool", false))
|
53
|
+
@context.names["xyz"].value.should == false
|
54
|
+
|
55
|
+
@context.stacks[:name].push(@name1)
|
56
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 123))
|
57
|
+
@i1.go
|
58
|
+
@context.stacks[:name].depth.should == 0
|
59
|
+
@context.stacks[:int].depth.should == 0
|
60
|
+
@context.names.length.should_not == 0
|
61
|
+
@context.names["xyz"].value.should == 123
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
|
68
|
+
describe BoolDefineInstruction do
|
69
|
+
before(:each) do
|
70
|
+
@context = Interpreter.new
|
71
|
+
@i1 = BoolDefineInstruction.new(@context)
|
72
|
+
end
|
73
|
+
|
74
|
+
it "should check its context is set" do
|
75
|
+
@i1.context.should == @context
|
76
|
+
end
|
77
|
+
|
78
|
+
[:preconditions?, :setup, :derive, :cleanup].each do |methodName|
|
79
|
+
it "should respond to \##{methodName}" do
|
80
|
+
@i1.should respond_to(methodName)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
describe "\#go" do
|
85
|
+
before(:each) do
|
86
|
+
@i1 = BoolDefineInstruction.new(@context)
|
87
|
+
@context.clear_stacks
|
88
|
+
@name1 = ChannelPoint.new("xyz")
|
89
|
+
end
|
90
|
+
|
91
|
+
describe "\#preconditions?" do
|
92
|
+
it "should check that there is one :name and one :int" do
|
93
|
+
@context.stacks[:name].push(@name1)
|
94
|
+
@context.stacks[:bool].push(LiteralPoint.new("bool", false))
|
95
|
+
@i1.preconditions?.should == true
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
describe "\#cleanup" do
|
100
|
+
before(:each) do
|
101
|
+
@context.clear_stacks
|
102
|
+
@context.reset_names
|
103
|
+
end
|
104
|
+
|
105
|
+
it "should bind the top :int to the top :name" do
|
106
|
+
@context.stacks[:name].push(@name1)
|
107
|
+
@context.stacks[:bool].push(LiteralPoint.new("bool", false))
|
108
|
+
@i1.go
|
109
|
+
@context.stacks[:name].depth.should == 0
|
110
|
+
@context.stacks[:bool].depth.should == 0
|
111
|
+
@context.names.length.should_not == 0
|
112
|
+
@context.names["xyz"].value.should == false
|
113
|
+
end
|
114
|
+
|
115
|
+
it "should overwrite the binding if it already exists" do
|
116
|
+
@context.bind_name("xyz", LiteralPoint.new("float", 3.3))
|
117
|
+
@context.names["xyz"].value.should == 3.3
|
118
|
+
|
119
|
+
@context.stacks[:name].push(@name1)
|
120
|
+
@context.stacks[:bool].push(LiteralPoint.new("bool", false))
|
121
|
+
@i1.go
|
122
|
+
@context.stacks[:name].depth.should == 0
|
123
|
+
@context.stacks[:bool].depth.should == 0
|
124
|
+
@context.names.length.should_not == 0
|
125
|
+
@context.names["xyz"].value.should == false
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
|
132
|
+
describe FloatDefineInstruction do
|
133
|
+
before(:each) do
|
134
|
+
@context = Interpreter.new
|
135
|
+
@i1 = FloatDefineInstruction.new(@context)
|
136
|
+
end
|
137
|
+
|
138
|
+
it "should check its context is set" do
|
139
|
+
@i1.context.should == @context
|
140
|
+
end
|
141
|
+
|
142
|
+
[:preconditions?, :setup, :derive, :cleanup].each do |methodName|
|
143
|
+
it "should respond to \##{methodName}" do
|
144
|
+
@i1.should respond_to(methodName)
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
describe "\#go" do
|
149
|
+
before(:each) do
|
150
|
+
@i1 = FloatDefineInstruction.new(@context)
|
151
|
+
@context.clear_stacks
|
152
|
+
@name1 = ChannelPoint.new("xyz")
|
153
|
+
end
|
154
|
+
|
155
|
+
describe "\#preconditions?" do
|
156
|
+
it "should check that there is one :name and one :int" do
|
157
|
+
@context.stacks[:name].push(@name1)
|
158
|
+
@context.stacks[:float].push(LiteralPoint.new("float", -11.11))
|
159
|
+
@i1.preconditions?.should == true
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
describe "\#cleanup" do
|
164
|
+
before(:each) do
|
165
|
+
@context.clear_stacks
|
166
|
+
@context.reset_names
|
167
|
+
end
|
168
|
+
|
169
|
+
it "should bind the top :int to the top :name" do
|
170
|
+
@context.stacks[:name].push(@name1)
|
171
|
+
@context.stacks[:float].push(LiteralPoint.new("float", -11.11))
|
172
|
+
@i1.go
|
173
|
+
@context.stacks[:name].depth.should == 0
|
174
|
+
@context.stacks[:float].depth.should == 0
|
175
|
+
@context.names.length.should_not == 0
|
176
|
+
@context.names["xyz"].value.should be_close(-11.11,0.00001)
|
177
|
+
end
|
178
|
+
|
179
|
+
it "should overwrite the binding if it already exists" do
|
180
|
+
@context.bind_name("xyz", LiteralPoint.new("int", 999))
|
181
|
+
@context.names["xyz"].value.should == 999
|
182
|
+
|
183
|
+
@context.stacks[:name].push(@name1)
|
184
|
+
@context.stacks[:float].push(LiteralPoint.new("float", -11.11))
|
185
|
+
@i1.go
|
186
|
+
@context.stacks[:name].depth.should == 0
|
187
|
+
@context.stacks[:float].depth.should == 0
|
188
|
+
@context.names.length.should_not == 0
|
189
|
+
@context.names["xyz"].value.should == -11.11
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
|
196
|
+
describe ExecDefineInstruction do
|
197
|
+
before(:each) do
|
198
|
+
@context = Interpreter.new
|
199
|
+
@i1 = ExecDefineInstruction.new(@context)
|
200
|
+
end
|
201
|
+
|
202
|
+
it "should check its context is set" do
|
203
|
+
@i1.context.should == @context
|
204
|
+
end
|
205
|
+
|
206
|
+
[:preconditions?, :setup, :derive, :cleanup].each do |methodName|
|
207
|
+
it "should respond to \##{methodName}" do
|
208
|
+
@i1.should respond_to(methodName)
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
describe "\#go" do
|
213
|
+
before(:each) do
|
214
|
+
@i1 = ExecDefineInstruction.new(@context)
|
215
|
+
@context.clear_stacks
|
216
|
+
@name1 = ChannelPoint.new("xyz")
|
217
|
+
end
|
218
|
+
|
219
|
+
describe "\#preconditions?" do
|
220
|
+
it "should check that there is one :name and one :int" do
|
221
|
+
@context.stacks[:name].push(@name1)
|
222
|
+
@context.stacks[:exec].push(LiteralPoint.new("int", 22))
|
223
|
+
@i1.preconditions?.should == true
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
describe "\#cleanup" do
|
228
|
+
before(:each) do
|
229
|
+
@context.clear_stacks
|
230
|
+
@context.reset_names
|
231
|
+
end
|
232
|
+
|
233
|
+
it "should bind the top :int to the top :name" do
|
234
|
+
@context.stacks[:name].push(@name1)
|
235
|
+
@context.stacks[:exec].push(LiteralPoint.new("int", 22))
|
236
|
+
@i1.go
|
237
|
+
@context.stacks[:name].depth.should == 0
|
238
|
+
@context.stacks[:exec].depth.should == 0
|
239
|
+
@context.names.length.should_not == 0
|
240
|
+
@context.names["xyz"].value.should == 22
|
241
|
+
end
|
242
|
+
|
243
|
+
it "should overwrite the binding if it already exists" do
|
244
|
+
@context.bind_name("xyz", LiteralPoint.new("int", 999))
|
245
|
+
@context.names["xyz"].value.should == 999
|
246
|
+
|
247
|
+
@context.stacks[:name].push(@name1)
|
248
|
+
@context.stacks[:exec].push(LiteralPoint.new("int", 22))
|
249
|
+
@i1.go
|
250
|
+
@context.stacks[:name].depth.should == 0
|
251
|
+
@context.stacks[:exec].depth.should == 0
|
252
|
+
@context.names.length.should_not == 0
|
253
|
+
@context.names["xyz"].value.should == 22
|
254
|
+
end
|
255
|
+
end
|
256
|
+
end
|
257
|
+
end
|
@@ -0,0 +1,382 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "/../spec_helper")
|
2
|
+
include Nudge
|
3
|
+
|
4
|
+
theseInstructions = [
|
5
|
+
NamePopInstruction,
|
6
|
+
NameSwapInstruction,
|
7
|
+
NameDuplicateInstruction,
|
8
|
+
NameRotateInstruction
|
9
|
+
]
|
10
|
+
|
11
|
+
namesTheyNeed = {
|
12
|
+
NamePopInstruction => 1,
|
13
|
+
NameSwapInstruction => 2,
|
14
|
+
NameDuplicateInstruction => 1,
|
15
|
+
NameRotateInstruction => 3
|
16
|
+
}
|
17
|
+
|
18
|
+
resultTuples = {
|
19
|
+
NamePopInstruction => {["a", "b"]=>["a"]},
|
20
|
+
NameSwapInstruction => {["a", "b"]=>["b", "a"]},
|
21
|
+
NameDuplicateInstruction => {["a"] => ["a", "a"]},
|
22
|
+
NameRotateInstruction => {["a", "b", "c"] => ["b", "c", "a"]}
|
23
|
+
}
|
24
|
+
|
25
|
+
theseInstructions.each do |instName|
|
26
|
+
describe instName do
|
27
|
+
before(:each) do
|
28
|
+
@context = Interpreter.new
|
29
|
+
@i1 = instName.new(@context)
|
30
|
+
end
|
31
|
+
|
32
|
+
it "should have its context right" do
|
33
|
+
@i1.context.should == @context
|
34
|
+
end
|
35
|
+
|
36
|
+
[:preconditions?, :setup, :derive, :cleanup].each do |methodName|
|
37
|
+
it "should respond to \##{methodName}" do
|
38
|
+
@i1 = instName.new(@context)
|
39
|
+
@i1.should respond_to(methodName)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
describe "\#go" do
|
44
|
+
before(:each) do
|
45
|
+
@i1 = instName.new(@context)
|
46
|
+
@context.clear_stacks
|
47
|
+
@name1 = ChannelPoint.new("a")
|
48
|
+
end
|
49
|
+
|
50
|
+
describe "\#preconditions?" do
|
51
|
+
it "should check that there are enough parameters" do
|
52
|
+
8.times {@context.stacks[:name].push(@name1)}
|
53
|
+
@i1.preconditions?.should == true
|
54
|
+
end
|
55
|
+
|
56
|
+
it "should raise an error if the preconditions aren't met" do
|
57
|
+
@context.clear_stacks # there are no params at all
|
58
|
+
lambda{@i1.preconditions?}.should raise_error(Instruction::NotEnoughStackItems)
|
59
|
+
end
|
60
|
+
|
61
|
+
it "should successfully run #go only if all preconditions are met" do
|
62
|
+
7.times {@context.stacks[:name].push(@name1)}
|
63
|
+
@i1.should_receive(:cleanup)
|
64
|
+
@i1.go
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe "\#cleanup" do
|
69
|
+
describe "should restructure the stack" do
|
70
|
+
examples = resultTuples[instName]
|
71
|
+
examples.each do |inputs, finalStackState|
|
72
|
+
params = inputs.inspect
|
73
|
+
expected = finalStackState.inspect
|
74
|
+
it "should end up with #{expected} on the \:name stack, starting with #{params}" do
|
75
|
+
inputs.each {|i| @context.stacks[:name].push(ChannelPoint.new(i))}
|
76
|
+
@i1.go
|
77
|
+
finalStackState.reverse.each {|i| @context.stacks[:name].pop.value.should == i}
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
|
87
|
+
describe NameDepthInstruction do
|
88
|
+
before(:each) do
|
89
|
+
@context = Interpreter.new
|
90
|
+
@i1 = NameDepthInstruction.new(@context)
|
91
|
+
end
|
92
|
+
|
93
|
+
it "should have its context set" do
|
94
|
+
@i1.context.should == @context
|
95
|
+
end
|
96
|
+
|
97
|
+
[:preconditions?, :setup, :derive, :cleanup].each do |methodName|
|
98
|
+
it "should respond to \##{methodName}" do
|
99
|
+
@i1.should respond_to(methodName)
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
describe "\#go" do
|
104
|
+
before(:each) do
|
105
|
+
@i1 = NameDepthInstruction.new(@context)
|
106
|
+
@context.clear_stacks
|
107
|
+
@name1 = ChannelPoint.new("d")
|
108
|
+
end
|
109
|
+
|
110
|
+
describe "\#preconditions?" do
|
111
|
+
it "should check that the :float stack responds to #depth" do
|
112
|
+
@i1.preconditions?.should == true
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
describe "\#cleanup" do
|
117
|
+
it "should count the items on the stack and push it onto the :int stack" do
|
118
|
+
@context.stacks[:int].depth.should == 0
|
119
|
+
@i1.go # there are no names
|
120
|
+
@context.stacks[:int].peek.value.should == 0
|
121
|
+
7.times {@context.stacks[:name].push @name1}
|
122
|
+
@i1.go
|
123
|
+
@context.stacks[:int].peek.value.should == 7
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
|
130
|
+
describe NameFlushInstruction do
|
131
|
+
before(:each) do
|
132
|
+
@context = Interpreter.new
|
133
|
+
@i1 = NameFlushInstruction.new(@context)
|
134
|
+
end
|
135
|
+
|
136
|
+
it "should have its context set right" do
|
137
|
+
@i1.context.should == @context
|
138
|
+
end
|
139
|
+
|
140
|
+
[:preconditions?, :setup, :derive, :cleanup].each do |methodName|
|
141
|
+
it "should respond to \##{methodName}" do
|
142
|
+
@i1.should respond_to(methodName)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
describe "\#go" do
|
147
|
+
before(:each) do
|
148
|
+
@i1 = NameFlushInstruction.new(@context)
|
149
|
+
@context.clear_stacks
|
150
|
+
@name1 = ChannelPoint.new("xx")
|
151
|
+
end
|
152
|
+
|
153
|
+
describe "\#preconditions?" do
|
154
|
+
it "should check that the :int stack responds to #depth" do
|
155
|
+
@i1.preconditions?.should == true
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
describe "\#cleanup" do
|
160
|
+
it "should remove all items on the stack" do
|
161
|
+
11.times {@context.stacks[:name].push(@name1)}
|
162
|
+
@context.stacks[:name].depth.should == 11
|
163
|
+
@i1.go
|
164
|
+
@context.stacks[:name].depth.should == 0
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
|
171
|
+
describe NameShoveInstruction do
|
172
|
+
before(:each) do
|
173
|
+
@context = Interpreter.new
|
174
|
+
@i1 = NameShoveInstruction.new(@context)
|
175
|
+
end
|
176
|
+
|
177
|
+
it "should check its context is set" do
|
178
|
+
@i1.context.should == @context
|
179
|
+
end
|
180
|
+
|
181
|
+
[:preconditions?, :setup, :derive, :cleanup].each do |methodName|
|
182
|
+
it "should respond to \##{methodName}" do
|
183
|
+
@i1.should respond_to(methodName)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
describe "\#go" do
|
188
|
+
before(:each) do
|
189
|
+
@i1 = NameShoveInstruction.new(@context)
|
190
|
+
@context.clear_stacks
|
191
|
+
@name1 = ChannelPoint.new("abc")
|
192
|
+
end
|
193
|
+
|
194
|
+
describe "\#preconditions?" do
|
195
|
+
it "should check that there is one :int and at least one :name" do
|
196
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 4))
|
197
|
+
@context.stacks[:name].push(@name1)
|
198
|
+
@i1.preconditions?.should == true
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
describe "\#cleanup" do
|
203
|
+
before(:each) do
|
204
|
+
@context.clear_stacks
|
205
|
+
11.times {@context.stacks[:name].push(@name1)}
|
206
|
+
@context.stacks[:name].push(ChannelPoint.new("xyz")) # making it 12 deep
|
207
|
+
end
|
208
|
+
|
209
|
+
it "should not move the top item if the integer is negative" do
|
210
|
+
@context.stacks[:int].push(LiteralPoint.new("int", -99))
|
211
|
+
@i1.go
|
212
|
+
@context.stacks[:name].depth.should == 12
|
213
|
+
@context.stacks[:name].peek.value.should == "xyz"
|
214
|
+
end
|
215
|
+
|
216
|
+
it "should not move the top item if the integer is zero" do
|
217
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 0))
|
218
|
+
@i1.go
|
219
|
+
@context.stacks[:name].depth.should == 12
|
220
|
+
@context.stacks[:name].peek.value.should == "xyz"
|
221
|
+
end
|
222
|
+
|
223
|
+
it "should move the top item farther down if the value is less than the depth" do
|
224
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 1000))
|
225
|
+
@i1.go
|
226
|
+
@context.stacks[:name].depth.should == 12
|
227
|
+
@context.stacks[:name].entries[0].value.should == "xyz"
|
228
|
+
end
|
229
|
+
|
230
|
+
it "should move the top item to the bottom if the value is more than the depth" do
|
231
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 4))
|
232
|
+
@i1.go
|
233
|
+
@context.stacks[:name].depth.should == 12
|
234
|
+
@context.stacks[:name].entries[11].value.should == "abc"
|
235
|
+
@context.stacks[:name].entries[7].value.should == "xyz"
|
236
|
+
end
|
237
|
+
end
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
|
242
|
+
describe NameYankInstruction do
|
243
|
+
before(:each) do
|
244
|
+
@context = Interpreter.new
|
245
|
+
@i1 = NameYankInstruction.new(@context)
|
246
|
+
end
|
247
|
+
|
248
|
+
it "should check its context is set" do
|
249
|
+
@i1.context.should == @context
|
250
|
+
end
|
251
|
+
|
252
|
+
[:preconditions?, :setup, :derive, :cleanup].each do |methodName|
|
253
|
+
it "should respond to \##{methodName}" do
|
254
|
+
@i1.should respond_to(methodName)
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
describe "\#go" do
|
259
|
+
before(:each) do
|
260
|
+
@i1 = NameYankInstruction.new(@context)
|
261
|
+
@context.clear_stacks
|
262
|
+
@int1 = LiteralPoint.new("int", 3)
|
263
|
+
end
|
264
|
+
|
265
|
+
describe "\#preconditions?" do
|
266
|
+
it "should check that there is one :name and at least one :int" do
|
267
|
+
@context.stacks[:name].push(ChannelPoint.new("g"))
|
268
|
+
@context.stacks[:int].push(@int1)
|
269
|
+
@i1.preconditions?.should == true
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
describe "\#cleanup" do
|
274
|
+
before(:each) do
|
275
|
+
@context.clear_stacks
|
276
|
+
('d'..'f').each {|i| @context.stacks[:name].push(ChannelPoint.new(i))}
|
277
|
+
end
|
278
|
+
|
279
|
+
it "should not change anything if the position integer is negative" do
|
280
|
+
@context.stacks[:int].push(LiteralPoint.new("int", -99))
|
281
|
+
@i1.go
|
282
|
+
and_now = @context.stacks[:name].entries.collect {|i| i.value}
|
283
|
+
and_now.should == ['d', 'e', 'f']
|
284
|
+
end
|
285
|
+
|
286
|
+
it "should not change anything if the position integer is zero" do
|
287
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 0))
|
288
|
+
@i1.go
|
289
|
+
and_now = @context.stacks[:name].entries.collect {|i| i.value}
|
290
|
+
and_now.should == ['d', 'e', 'f']
|
291
|
+
end
|
292
|
+
|
293
|
+
it "should pull the last item on the stack to the top if the position is more than the stackdepth" do
|
294
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 1000))
|
295
|
+
@i1.go
|
296
|
+
and_now = @context.stacks[:name].entries.collect {|i| i.value}
|
297
|
+
and_now.should == ['e', 'f', 'd']
|
298
|
+
end
|
299
|
+
|
300
|
+
it "should yank the indicated item to the top of the stack, counting from the 'top' 'down'" do
|
301
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 1))
|
302
|
+
@i1.go
|
303
|
+
and_now = @context.stacks[:name].entries.collect {|i| i.value}
|
304
|
+
and_now.should == ['d', 'f', 'e']
|
305
|
+
end
|
306
|
+
end
|
307
|
+
end
|
308
|
+
end
|
309
|
+
|
310
|
+
|
311
|
+
describe NameYankdupInstruction do
|
312
|
+
before(:each) do
|
313
|
+
@context = Interpreter.new
|
314
|
+
@i1 = NameYankdupInstruction.new(@context)
|
315
|
+
end
|
316
|
+
|
317
|
+
it "should check its context is set" do
|
318
|
+
@i1.context.should == @context
|
319
|
+
end
|
320
|
+
|
321
|
+
[:preconditions?, :setup, :derive, :cleanup].each do |methodName|
|
322
|
+
it "should respond to \##{methodName}" do
|
323
|
+
@i1.should respond_to(methodName)
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
describe "\#go" do
|
328
|
+
before(:each) do
|
329
|
+
@i1 = NameYankdupInstruction.new(@context)
|
330
|
+
@context.clear_stacks
|
331
|
+
@int1 = LiteralPoint.new("int", 3)
|
332
|
+
end
|
333
|
+
|
334
|
+
describe "\#preconditions?" do
|
335
|
+
it "should check that there is one :int and at least one :name" do
|
336
|
+
@context.stacks[:name].push(ChannelPoint.new('x'))
|
337
|
+
@context.stacks[:int].push(@int1)
|
338
|
+
@i1.preconditions?.should == true
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
describe "\#cleanup" do
|
343
|
+
before(:each) do
|
344
|
+
@context.clear_stacks
|
345
|
+
('m'..'q').each {|i| @context.stacks[:name].push(ChannelPoint.new(i))}
|
346
|
+
end
|
347
|
+
|
348
|
+
it "should duplicate the top item if the position integer is negative" do
|
349
|
+
@context.stacks[:int].push(LiteralPoint.new("int", -99))
|
350
|
+
@i1.go
|
351
|
+
and_now = @context.stacks[:name].entries.collect {|i| i.value}
|
352
|
+
and_now.should == ['m', 'n', 'o', 'p', 'q', 'q']
|
353
|
+
end
|
354
|
+
|
355
|
+
it "should duplicate the top item if the position integer is zero" do
|
356
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 0))
|
357
|
+
@i1.go
|
358
|
+
and_now = @context.stacks[:name].entries.collect {|i| i.value}
|
359
|
+
and_now.should == ['m', 'n', 'o', 'p', 'q', 'q']
|
360
|
+
end
|
361
|
+
|
362
|
+
it "should clone the bottom item and push it if the position is more than the stackdepth" do
|
363
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 1000))
|
364
|
+
@i1.go
|
365
|
+
and_now = @context.stacks[:name].entries.collect {|i| i.value}
|
366
|
+
and_now.should == ['m', 'n', 'o', 'p', 'q', 'm']
|
367
|
+
end
|
368
|
+
|
369
|
+
it "should push a copy of the indicated item to the top of the stack, counting from the 'top down'" do
|
370
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 2))
|
371
|
+
@i1.go
|
372
|
+
and_now = @context.stacks[:name].entries.collect {|i| i.value}
|
373
|
+
and_now.should == ['m', 'n', 'o', 'p', 'q', 'o']
|
374
|
+
|
375
|
+
@context.stacks[:int].push(LiteralPoint.new("int", 4))
|
376
|
+
@i1.go
|
377
|
+
and_now = @context.stacks[:name].entries.collect {|i| i.value}
|
378
|
+
and_now.should == ['m', 'n', 'o', 'p', 'q', 'o', 'n']
|
379
|
+
end
|
380
|
+
end
|
381
|
+
end
|
382
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "/../spec_helper")
|
2
|
+
include Nudge
|
3
|
+
|
4
|
+
|
5
|
+
theseInstructions = [
|
6
|
+
IntRandomInstruction,
|
7
|
+
BoolRandomInstruction,
|
8
|
+
FloatRandomInstruction
|
9
|
+
]
|
10
|
+
|
11
|
+
whatItMakes = {
|
12
|
+
IntRandomInstruction => {:where => :int, :what => IntType},
|
13
|
+
BoolRandomInstruction => {:where => :bool, :what => BoolType},
|
14
|
+
FloatRandomInstruction => {:where => :float, :what => FloatType}
|
15
|
+
}
|
16
|
+
|
17
|
+
|
18
|
+
theseInstructions.each do |instName|
|
19
|
+
describe instName do
|
20
|
+
before(:each) do
|
21
|
+
@context = Interpreter.new
|
22
|
+
@i1 = instName.new(@context)
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should have the right context" do
|
26
|
+
@i1.context.should == @context
|
27
|
+
end
|
28
|
+
|
29
|
+
[:preconditions?, :setup, :derive, :cleanup].each do |methodName|
|
30
|
+
it "should respond to \##{methodName}" do
|
31
|
+
@i1 = instName.new(@context)
|
32
|
+
@i1.should respond_to(methodName)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe "\#go" do
|
37
|
+
before(:each) do
|
38
|
+
@i1 = instName.new(@context)
|
39
|
+
@context.clear_stacks
|
40
|
+
@stackName = whatItMakes[instName][:where]
|
41
|
+
end
|
42
|
+
|
43
|
+
describe "\#preconditions?" do
|
44
|
+
it "should check that there are enough parameters" do
|
45
|
+
# there are none, for these instructions
|
46
|
+
@i1.preconditions?.should == true
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe "\#cleanup" do
|
51
|
+
it "should invoke Type#any_value" do
|
52
|
+
@context.clear_stacks
|
53
|
+
whatItMakes[instName][:what].should_receive(:any_value)
|
54
|
+
@i1.go
|
55
|
+
end
|
56
|
+
|
57
|
+
it "should have a created a new instance of the right type and pushed it" do
|
58
|
+
@context.clear_stacks
|
59
|
+
@i1.go
|
60
|
+
@context.stacks[@stackName].depth.should == 1
|
61
|
+
result = @context.stacks[@stackName].peek
|
62
|
+
result.value.should_not == nil
|
63
|
+
result.type.should == @stackName
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|