Skip to content

Commit

Permalink
Add regression test for slow repeated rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeygroover committed Mar 17, 2022
1 parent e622c65 commit 9a57b6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/commands/special_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,8 @@ defmodule SpecialOpsTest do
assert evaluate("\"abcdef\" 1101S ÅÏu}") == "ABcDef"
assert evaluate("∞ 10Þ ÅÏ5+} 10£") == [6, 2, 8, 4, 10, 6, 12, 8, 14, 10]
end

test "performance of repeated rotation" do
assert evaluate("123456789S256FÀ") == ["5", "6", "7", "8", "9", "1", "2", "3", "4"]
end
end

0 comments on commit 9a57b6a

Please sign in to comment.