Commit d9470d9

mo <mokha@cisco.com>
2017-05-20 18:16:36
solve all tests.
1 parent 33d9f35
Changed files (1)
spec/visible_points_spec.rb
@@ -129,8 +129,14 @@ describe "visible points" do
 
   def valid_viewing_angles_for(points)
     angles = [
-      ViewingAngle.new(top: 90.0, bottom: 45.0),
       ViewingAngle.new(top: 45.0, bottom: 0.0),
+      ViewingAngle.new(top: 90.0, bottom: 45.0),
+      ViewingAngle.new(top: 135.0, bottom: 90.0),
+      ViewingAngle.new(top: 180.0, bottom: 135.0),
+      ViewingAngle.new(top: 225.0, bottom: 180.0),
+      ViewingAngle.new(top: 270.0, bottom: 225.0),
+      ViewingAngle.new(top: 315.0, bottom: 270.0),
+      ViewingAngle.new(top: 360.0, bottom: 315.0),
     ]
     points.each do |(x, y)|
       next if x == 0 && y == 0