github.com/getgauge/gauge@v1.6.9/reporter/consoleFormatter_test.go (about) 1 /*---------------------------------------------------------------- 2 * Copyright (c) ThoughtWorks, Inc. 3 * Licensed under the Apache License, Version 2.0 4 * See LICENSE in the project root for license information. 5 *----------------------------------------------------------------*/ 6 7 package reporter 8 9 import ( 10 "testing" 11 12 . "gopkg.in/check.v1" 13 ) 14 15 func Test(t *testing.T) { TestingT(t) } 16 17 type MySuite struct{} 18 19 var _ = Suite(&MySuite{}) 20 21 func (s *MySuite) TestIndent(c *C) { 22 c.Assert(indent("foo bar", 2), Equals, " foo bar") 23 c.Assert(indent("\nfoo bar", 2), Equals, " \n foo bar") 24 }