def test_uniform_range_as_number():
    from lasagne.init import Uniform

    sample = Uniform(1.0).sample((300, 400))
    assert sample.shape == (300, 400)
    assert -1.0 <= -0.9 < sample.min()
    assert 0.9 < sample.max() <= 1.0
dataset/ETHPy150Open Lasagne/Lasagne/lasagne/tests/test_init.py/test_uniform_range_as_number/swapped operands of `<`