Skip to content
Snippets Groups Projects
ExpectingSimple.go 323 B
Newer Older
  • Learn to ignore specific revisions
  • 
    import "fmt"
    
    // ExpectingSimple
    //
    // returns
    //      "%s - Expect (type:\"%T\")[\"%v\"] != [\"%v\"](type:\"%T\") Actual"
    func ExpectingSimple(title, wasExpecting, actual interface{}) string {
    	return fmt.Sprintf(
    		expectingSimpleMessageFormat,
    		title,
    		wasExpecting, wasExpecting,
    		actual, actual)
    }