text: "use strict"
  
  var o = require("ospec")
  var Vnode = require("../../render/vnode")
  
  o.spec("normalize", function() {
  	o("normalizes array into fragment", function() {
  		var node = Vnode.normalize([])
  
  		o(node.tag).equals("[")
  		o(node.children.length).equals(0)
  	})
  	o("normalizes nested array into fragment", function() {
  		var node = Vnode.normalize([[]])
  
  		o(node.tag).equals("[")
  		o(node.children.length).equals(1)
  		o(node.children[0].tag).equals("[")
  		o(node.children[0].children.length).equals(0)
  	})
  	o("normalizes string into text node", function() {
  		var node = Vnode.normalize("a")
  
  		o(node.tag).equals("#")
  		o(node.children).equals("a")
  	})
  	o("normalizes falsy string into text node", function() {
  		var node = Vnode.normalize("")
  
  		o(node.tag).equals("#")
  		o(node.children).equals("")
  	})
  	o("normalizes number into text node", function() {
  		var node = Vnode.normalize(1)
  
  		o(node.tag).equals("#")
  		o(node.children).equals("1")
  	})
  	o("normalizes falsy number into text node", function() {
  		var node = Vnode.normalize(0)
  
  		o(node.tag).equals("#")
  		o(node.children).equals("0")
  	})
  	o("normalizes `true` to `null`", function() {
  		var node = Vnode.normalize(true)
  
  		o(node).equals(null)
  	})
  	o("normalizes `false` to `null`", function() {
  		var node = Vnode.normalize(false)
  
  		o(node).equals(null)
  	})
  })
  