mirror of
https://github.com/sigmasternchen/gleam-community-maths
synced 2025-03-14 23:49:01 +00:00
Initial commit
This commit is contained in:
commit
62eb90da2b
7 changed files with 3553 additions and 0 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
*.beam
|
||||
*.ez
|
||||
build
|
||||
erl_crash.dump
|
24
README.md
Normal file
24
README.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# maths
|
||||
|
||||
[](https://hex.pm/packages/maths)
|
||||
[](https://hexdocs.pm/maths/)
|
||||
|
||||
A Gleam project
|
||||
|
||||
## Quick start
|
||||
|
||||
```sh
|
||||
gleam run # Run the project
|
||||
gleam test # Run the tests
|
||||
gleam shell # Run an Erlang shell
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
If available on Hex this package can be added to your Gleam project:
|
||||
|
||||
```sh
|
||||
gleam add maths
|
||||
```
|
||||
|
||||
and its documentation can be found at <https://hexdocs.pm/maths>.
|
12
gleam.toml
Normal file
12
gleam.toml
Normal file
|
@ -0,0 +1,12 @@
|
|||
name = "gleam_community_maths"
|
||||
version = "0.1.0"
|
||||
|
||||
licences = ["Apache-2.0"]
|
||||
description = "A basic maths library"
|
||||
repository = { type = "github", user = "gleam-community", repo = "maths" }
|
||||
|
||||
[dependencies]
|
||||
gleam_stdlib = "~> 0.25"
|
||||
|
||||
[dev-dependencies]
|
||||
gleeunit = "~> 0.7"
|
11
manifest.toml
Normal file
11
manifest.toml
Normal file
|
@ -0,0 +1,11 @@
|
|||
# This file was generated by Gleam
|
||||
# You typically do not need to edit this file
|
||||
|
||||
packages = [
|
||||
{ name = "gleam_stdlib", version = "0.25.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "AD0F89928E0B919C8F8EDF640484633B28DBF88630A9E6AE504617A3E3E5B9A2" },
|
||||
{ name = "gleeunit", version = "0.8.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "A1170754BF54F5DD6E9EF392FB1DC612528B007CCBE41B52F0C5453254708490" },
|
||||
]
|
||||
|
||||
[requirements]
|
||||
gleam_stdlib = "~> 0.25"
|
||||
gleeunit = "~> 0.7"
|
1764
src/gleam_community/float.gleam
Normal file
1764
src/gleam_community/float.gleam
Normal file
File diff suppressed because it is too large
Load diff
1726
src/gleam_community/int.gleam
Normal file
1726
src/gleam_community/int.gleam
Normal file
File diff suppressed because it is too large
Load diff
12
test/maths_test.gleam
Normal file
12
test/maths_test.gleam
Normal file
|
@ -0,0 +1,12 @@
|
|||
import gleeunit
|
||||
import gleeunit/should
|
||||
|
||||
pub fn main() {
|
||||
gleeunit.main()
|
||||
}
|
||||
|
||||
// gleeunit test functions end in `_test`
|
||||
pub fn hello_world_test() {
|
||||
1
|
||||
|> should.equal(1)
|
||||
}
|
Loading…
Reference in a new issue