mirror of
https://github.com/ray-x/navigator.lua
synced 2024-11-19 09:25:30 +00:00
26 lines
392 B
Go
26 lines
392 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestDog(t *testing.T) {
|
|
require.NoError(t, nil)
|
|
d := NewDog("Fibi", 4)
|
|
fmt.Println(d.name)
|
|
if d.name != "Fibi" {
|
|
t.Errorf("NewDog failled %v", d)
|
|
}
|
|
}
|
|
|
|
func TestCat(t *testing.T) {
|
|
d := NewDog("Fibi cat", 4)
|
|
fmt.Println(d.name)
|
|
if d.name != "Fibi cat" {
|
|
t.Errorf("NewDog failled %v", d)
|
|
}
|
|
}
|