Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/walkersumida/prettyout
https://github.com/walkersumida/prettyout
go golang
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/walkersumida/prettyout
- Owner: walkersumida
- Created: 2022-01-09T09:16:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-09T14:09:55.000Z (almost 3 years ago)
- Last Synced: 2024-10-23T01:45:48.493Z (2 months ago)
- Topics: go, golang
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prettyout
## Installation
```shell
go get -u github.com/walkersumida/prettyout
```## Usage
```go
package jakerimport (
"testing"p "github.com/walkersumida/prettyout" // <- add
)func TestProfile(t *testing.T) {
t.Run("english fullname", func(t *testing.T) {
expected := "Walker Sumida"
got := "ウォーカー スミダ"
if got != expected {
t.Errorf(p.Serror(expected, got)) // <- call
}
})
}
``````
=== RUN TestProfile/english_fullname
jaker_test.go:15:
-expected +got:
string(
- "Walker Sumida",
+ "ウォーカー スミダ",
)
--- FAIL: TestProfile (0.00s)
--- FAIL: TestProfile/english_fullname (0.00s)
```