aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Quinn <mail@victorquinn.com>2017-01-28 22:42:33 +0800
committerVictor Quinn <mail@victorquinn.com>2017-01-28 22:42:33 +0800
commit2ad742c86518defd44f722bb7c285a82af2d6307 (patch)
treedf17fb8f560290a1ace6c97335a8c2d50503a648
parentd6f52241f332c63811249bd79a522406bea1a7c9 (diff)
downloaddexon-decimal-2ad742c86518defd44f722bb7c285a82af2d6307.tar.gz
dexon-decimal-2ad742c86518defd44f722bb7c285a82af2d6307.tar.zst
dexon-decimal-2ad742c86518defd44f722bb7c285a82af2d6307.zip
Fix some typos, add godoc badge
-rw-r--r--README.md4
-rw-r--r--decimal_test.go10
2 files changed, 8 insertions, 6 deletions
diff --git a/README.md b/README.md
index 7aaadae..be9cb5e 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,6 @@
-# decimal [![Build Status](https://travis-ci.org/shopspring/decimal.png?branch=master)](https://travis-ci.org/shopspring/decimal) [![BADGINATOR](https://badginator.herokuapp.com/shopspring/decimal.svg?image_analysis=1)](https://github.com/defunctzombie/badginator)
+# decimal
+
+[![Build Status](https://travis-ci.org/shopspring/decimal.png?branch=master)](https://travis-ci.org/shopspring/decimal) [![GoDoc](https://godoc.org/github.com/shopspring/decimal?status.svg)](https://godoc.org/github.com/shopspring/decimal) [![Go Report Card](https://goreportcard.com/badge/github.com/shopspring/decimal)](https://goreportcard.com/report/github.com/shopspring/decimal)
Arbitrary-precision fixed-point decimal numbers in go.
diff --git a/decimal_test.go b/decimal_test.go
index b0b2088..82687c0 100644
--- a/decimal_test.go
+++ b/decimal_test.go
@@ -744,7 +744,7 @@ func TestDecimal_ExtremeValues(t *testing.T) {
t.Skip()
}
- // NOTE(vadim): Seriously, the numbers invovled are so large that this
+ // NOTE(vadim): Seriously, the numbers involved are so large that this
// test will take way too long, so mark it as success if it takes over
// 1 second. The way this test typically fails (integer overflow) is that
// a wrong result appears quickly, so if it takes a long time then it is
@@ -878,7 +878,7 @@ func TestDecimal_Scan(t *testing.T) {
t.Errorf("a.Scan(54.33) failed with message: %s", err)
} else {
- // Scan suceeded... test resulting values
+ // Scan succeeded... test resulting values
if !a.Equals(expected) {
t.Errorf("%s does not equal to %s", a, expected)
}
@@ -895,7 +895,7 @@ func TestDecimal_Scan(t *testing.T) {
t.Errorf("a.Scan(0) failed with message: %s", err)
} else {
- // Scan suceeded... test resulting values
+ // Scan succeeded... test resulting values
if !a.Equals(expected) {
t.Errorf("%s does not equal to %s", a, expected)
}
@@ -916,7 +916,7 @@ func TestDecimal_Scan(t *testing.T) {
t.Errorf("a.Scan('535.666') failed with message: %s", err)
} else {
- // Scan suceeded... test resulting values
+ // Scan succeeded... test resulting values
if !a.Equals(expected) {
t.Errorf("%s does not equal to %s", a, expected)
}
@@ -933,7 +933,7 @@ func TestDecimal_Scan(t *testing.T) {
// Scan failed... no need to test result value
t.Errorf("a.Scan('535.666') failed with message: %s", err)
} else {
- // Scan suceeded... test resulting values
+ // Scan succeeded... test resulting values
if !a.Equals(expected) {
t.Errorf("%s does not equal to %s", a, expected)
}