Skip to content

Commit 22c09d1

Browse files
iSarCasmRX14
authored andcommitted
Remove the possibility to require big_*. Leaving only with require "big" (#5121)
* Remove the possibility to require only BigInt\BigFloat\BigRational * Remove all requires of big_int
1 parent 906a8cb commit 22c09d1

File tree

13 files changed

+8
-15
lines changed

13 files changed

+8
-15
lines changed

spec/std/big/big_float_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require "spec"
2-
require "big_float"
2+
require "big"
33

44
describe "BigFloat" do
55
describe "new" do

spec/std/big/big_int_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require "spec"
2-
require "big_int"
2+
require "big"
33

44
describe "BigInt" do
55
it "creates with a value of zero" do

spec/std/big/big_rational_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require "spec"
2-
require "big_rational"
2+
require "big"
33

44
private def br(n, d)
55
BigRational.new(n, d)

spec/std/int_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require "spec"
2-
require "big_int"
2+
require "big"
33

44
private def to_s_with_io(num)
55
String.build { |str| num.to_s(str) }

spec/std/io/io_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require "spec"
2-
require "big_int"
2+
require "big"
33
require "base64"
44

55
# This is a non-optimized version of IO::Memory so we can test

spec/std/range_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require "spec"
2-
require "big_int"
2+
require "big"
33

44
struct RangeSpecIntWrapper
55
include Comparable(self)

spec/std/struct_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require "spec"
2-
require "big_int"
2+
require "big"
33

44
private module StructSpec
55
struct TestClass

src/big/big_float.cr

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require "c/string"
2-
require "big"
32

43
# A `BigFloat` can represent arbitrarily large floats.
54
#

src/big/big_int.cr

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require "c/string"
2-
require "big"
32

43
# A `BigInt` can represent arbitrarily large integers.
54
#

src/big/big_rational.cr

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
require "big"
2-
31
# Rational numbers are represented as the quotient of arbitrarily large
42
# numerators and denominators. Rationals are canonicalized such that the
53
# denominator and the numerator have no common factors, and that the
64
# denominator is positive. Zero has the unique representation 0/1.
75
#
86
# ```
9-
# require "big_rational"
7+
# require "big"
108
#
119
# r = BigRational.new(7.to_big_i, 3.to_big_i)
1210
# r.to_s # => "7/3"

0 commit comments

Comments
 (0)