File: misc_test.go

package info (click to toggle)
golang-github-bep-godartsass 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 424 kB
  • sloc: makefile: 2
file content (17 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package godartsass

import (
	"testing"

	qt "github.com/frankban/quicktest"
)

func TestHasScheme(t *testing.T) {
	c := qt.New(t)

	c.Assert(hasScheme("file:foo"), qt.Equals, true)
	c.Assert(hasScheme("http:foo"), qt.Equals, true)
	c.Assert(hasScheme("http://foo"), qt.Equals, true)
	c.Assert(hasScheme("123:foo"), qt.Equals, false)
	c.Assert(hasScheme("foo"), qt.Equals, false)
}