github.com/getgauge/gauge@v1.6.9/parser/processor_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 parser
     8  
     9  import (
    10  	"github.com/getgauge/gauge/gauge"
    11  	. "gopkg.in/check.v1"
    12  )
    13  
    14  func (s *MySuite) TestProcessTable(c *C) {
    15  	t := &Token{Kind: gauge.TableRow, Value: "|first second third    |"}
    16  	errors, _ := processTable(new(SpecParser), t)
    17  
    18  	c.Assert(len(errors), Equals, 0)
    19  	c.Assert(t.Args[0], Equals, "first second third")
    20  }