ssa
20 строк · 362.0 Байт
1package tests_test
2
3import (
4"testing"
5
6gomathtests "github.com/RB-PRO/ssa/pkg/go-MathTests"
7)
8
9func TestLoadSave(t *testing.T) {
10Err := gomathtests.Save("save.txt", []float64{1, 2, 3, 4, 5})
11if Err != nil {
12t.Error(Err)
13}
14}
15func TestPlot(t *testing.T) {
16Err := gomathtests.Plot("save.png", []float64{1, 2, 2, 7, 5})
17if Err != nil {
18t.Error(Err)
19}
20}
21