diff --git a/int/test/moon.pkg.json b/int/test/moon.pkg.json new file mode 100644 index 000000000..0b366f17f --- /dev/null +++ b/int/test/moon.pkg.json @@ -0,0 +1,3 @@ +{ + "import": ["moonbitlang/core/builtin", "moonbitlang/core/coverage", "moonbitlang/core/int"] +} diff --git a/int/test/test.mbt b/int/test/test.mbt new file mode 100644 index 000000000..cc7828d58 --- /dev/null +++ b/int/test/test.mbt @@ -0,0 +1,20 @@ +// Copyright 2024 International Digital Economy Academy +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +test "fromint" { + inspect(Int::from_int(3), content="3")? + inspect(Int::signum(3), content="1")? + inspect(Int::signum(-3), content="-1")? + inspect(Int::signum(0), content="0")? +} diff --git a/int/test/test.mbti b/int/test/test.mbti new file mode 100644 index 000000000..bb72e57e0 --- /dev/null +++ b/int/test/test.mbti @@ -0,0 +1,10 @@ +package moonbitlang/core/int/test + +// Values + +// Types and methods + +// Traits + +// Extension Methods +