Initial commit

This commit is contained in:
NicklasXYZ 2022-12-23 15:26:58 +01:00
commit 62eb90da2b
7 changed files with 3553 additions and 0 deletions

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
*.beam
*.ez
build
erl_crash.dump

24
README.md Normal file
View file

@ -0,0 +1,24 @@
# maths
[![Package Version](https://img.shields.io/hexpm/v/maths)](https://hex.pm/packages/maths)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](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
View 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
View 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"

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

12
test/maths_test.gleam Normal file
View 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)
}