// Copyright 2022 Molecula Corp. (DBA FeatureBase). // SPDX-License-Identifier: Apache-2.0 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) } } }