# Copyright 2014, Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain
# rights in this software.

from behave import *

import numpy
import toyplot

import testing

@given(u'a sample plot, the plot can be rendered with a dashed line style.')
def step_impl(context):
    canvas, axes, mark = toyplot.plot(numpy.linspace(0, 1) ** 2, style={"stroke-dasharray":"5,5"})
    testing.assert_canvas_equal(canvas, "style-stroke-dasharray")

numpy.linspace