mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
19 lines
465 B
Go
19 lines
465 B
Go
// Copyright 2021 Molecula Corp. All rights reserved.
|
|
package pilosa
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func Test_TxFactory_verifyStringConstantsMatch(t *testing.T) {
|
|
// txtype.String() method MUST return strings that match
|
|
// our const definitions at the top of txfactory.go.
|
|
check := []txtype{rbfTxn}
|
|
expect := []string{RBFTxn}
|
|
for i, chk := range check {
|
|
obs := chk.String()
|
|
if obs != expect[i] {
|
|
t.Fatalf("expected '%v' but got '%v'", expect[i], obs)
|
|
}
|
|
}
|
|
}
|