File: moltype_test.go

package info (click to toggle)
golang-github-biogo-biogo 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,332 kB
  • sloc: sh: 282; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright ©2011-2013 The bíogo Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package feat

import (
	"gopkg.in/check.v1"
)

// Tests
func (s *S) TestMoltype(c *check.C) {
	for i, s := range moltypeToString {
		c.Check(Moltype(i).String(), check.Equals, s)
		c.Check(ParseMoltype(s), check.Equals, Moltype(i))
		c.Check(ParseMoltype(s+"salt"), check.Equals, Undefined)
	}
}