We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca06832 commit 701bfa4Copy full SHA for 701bfa4
test/test_utilities.jl
@@ -137,6 +137,21 @@ using Convex: AbstractExpr, ConicObj
137
termination status: OPTIMAL
138
primal status: FEASIBLE_POINT
139
dual status: FEASIBLE_POINT"""
140
+
141
+ # test small `MAXDIGITS`
142
+ x = Variable()
143
+ old_maxdigits = Convex.MAXDIGITS[]
144
+ Convex.MAXDIGITS[] = 2
145
+ @test length(Convex.show_id(x)) == length("id: ") + 5
146
+ Convex.MAXDIGITS[] = old_maxdigits
147
148
+ # test large `MAXDIGITS`
149
150
151
+ Convex.MAXDIGITS[] = 100
152
+ @test length(Convex.show_id(x)) == length("id: ") + length(string(x.id_hash))
153
154
155
end
156
157
@testset "ConicObj with type $T" for T = [UInt32, UInt64]
0 commit comments