#!/usr/bin/ruby

#
## Tests for Number.square_free_count()
#

assert_eq(43.square_free_count, 29)
assert_eq(square_free_count(-10, 43), 29)
assert_eq(square_free_count(2, 43), 28)
assert_eq(square_free_count(4, 43), 26)
assert_eq(square_free_count(1e6), 607926)
assert_eq(square_free_count(1e5, 1e6), 547132)
assert_eq(square_free_count(1e5 - 2, 1e6 - 3), 547133)
assert_eq(square_free_count(1e5 - 1, 1e6 - 3), 547132)
assert_eq(square_free_count(1e5 - 2, 1e6 - 1), 547133)

say "** Test passed!"
