using Farey
using Base.Test

@test farey(1) == [0//1, 1//1]
@test farey(2) == [0//1, 1//2, 1//1]
@test farey(3) == [0//1, 1//3, 1//2, 2//3, 1//1]
@test farey(4) == [0//1, 1//4, 1//3, 1//2, 2//3, 3//4, 1//1]
@test farey(5) == [0//1, 1//5, 1//4, 1//3, 2//5, 1//2, 3//5, 2//3, 3//4, 4//5, 1//1]
