Skip to content

Commit

Permalink
Remove the possibility to require big_*. Leaving only with require "b…
Browse files Browse the repository at this point in the history
…ig" (#5121)

* Remove the possibility to require only BigInt\BigFloat\BigRational

* Remove all requires of big_int
  • Loading branch information
iSarCasm authored and RX14 committed Oct 15, 2017
1 parent 906a8cb commit 22c09d1
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion spec/std/big/big_float_spec.cr
@@ -1,5 +1,5 @@
require "spec"
require "big_float"
require "big"

describe "BigFloat" do
describe "new" do
Expand Down
2 changes: 1 addition & 1 deletion spec/std/big/big_int_spec.cr
@@ -1,5 +1,5 @@
require "spec"
require "big_int"
require "big"

describe "BigInt" do
it "creates with a value of zero" do
Expand Down
2 changes: 1 addition & 1 deletion spec/std/big/big_rational_spec.cr
@@ -1,5 +1,5 @@
require "spec"
require "big_rational"
require "big"

private def br(n, d)
BigRational.new(n, d)
Expand Down
2 changes: 1 addition & 1 deletion spec/std/int_spec.cr
@@ -1,5 +1,5 @@
require "spec"
require "big_int"
require "big"

private def to_s_with_io(num)
String.build { |str| num.to_s(str) }
Expand Down
2 changes: 1 addition & 1 deletion spec/std/io/io_spec.cr
@@ -1,5 +1,5 @@
require "spec"
require "big_int"
require "big"
require "base64"

# This is a non-optimized version of IO::Memory so we can test
Expand Down
2 changes: 1 addition & 1 deletion spec/std/range_spec.cr
@@ -1,5 +1,5 @@
require "spec"
require "big_int"
require "big"

struct RangeSpecIntWrapper
include Comparable(self)
Expand Down
2 changes: 1 addition & 1 deletion spec/std/struct_spec.cr
@@ -1,5 +1,5 @@
require "spec"
require "big_int"
require "big"

private module StructSpec
struct TestClass
Expand Down
1 change: 0 additions & 1 deletion src/big/big_float.cr
@@ -1,5 +1,4 @@
require "c/string"
require "big"

# A `BigFloat` can represent arbitrarily large floats.
#
Expand Down
1 change: 0 additions & 1 deletion src/big/big_int.cr
@@ -1,5 +1,4 @@
require "c/string"
require "big"

# A `BigInt` can represent arbitrarily large integers.
#
Expand Down
4 changes: 1 addition & 3 deletions src/big/big_rational.cr
@@ -1,12 +1,10 @@
require "big"

# Rational numbers are represented as the quotient of arbitrarily large
# numerators and denominators. Rationals are canonicalized such that the
# denominator and the numerator have no common factors, and that the
# denominator is positive. Zero has the unique representation 0/1.
#
# ```
# require "big_rational"
# require "big"
#
# r = BigRational.new(7.to_big_i, 3.to_big_i)
# r.to_s # => "7/3"
Expand Down
1 change: 0 additions & 1 deletion src/big_float.cr

This file was deleted.

1 change: 0 additions & 1 deletion src/big_int.cr

This file was deleted.

1 change: 0 additions & 1 deletion src/big_rational.cr

This file was deleted.

0 comments on commit 22c09d1

Please sign in to comment.