This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def cells 30) ; Number of cells on the board | |
; Map of snakes swallowing you at the key and shitting you out at the value | |
(def snakes {27 1 | |
21 9 | |
19 7 | |
17 4}) | |
; Map of ladders bottom to top cell | |
(def ladders {3 22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'abstract_unit' | |
require 'controller/fake_controllers' | |
class TestCollectionRouting < ActionDispatch::IntegrationTest | |
test "collection option" do | |
with_routing do |set| | |
set.draw do | |
resources :posts, collection: true | |
end | |
assert_routing "/posts/1", {controller: "posts", action: "show", id: "1"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"strconv" | |
) | |
func main() { | |
if len(os.Args) != 2 { |