Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_foreground():
assert foreground(black, red, green, yellow, blue, black, white) == white
assert foreground(black, red, green, yellow, blue, black) == yellow
assert foreground(black, red, green, blue, black) == green
assert foreground(black, red, blue, black) == red
assert foreground(black, blue, black) == blue
def test_foreground():
assert foreground(black, red, green, yellow, blue, black, white) == white
assert foreground(black, red, green, yellow, blue, black) == yellow
assert foreground(black, red, green, blue, black) == green
assert foreground(black, red, blue, black) == red
assert foreground(black, blue, black) == blue
def fg(name):
return foreground(
name2rgb(13),
black, white)
def test_foreground():
assert foreground(black, red, green, yellow, blue, black, white) == white
assert foreground(black, red, green, yellow, blue, black) == yellow
assert foreground(black, red, green, blue, black) == green
assert foreground(black, red, blue, black) == red
assert foreground(black, blue, black) == blue
def test_foreground():
assert foreground(black, red, green, yellow, blue, black, white) == white
assert foreground(black, red, green, yellow, blue, black) == yellow
assert foreground(black, red, green, blue, black) == green
assert foreground(black, red, blue, black) == red
assert foreground(black, blue, black) == blue
def test_foreground():
assert foreground(black, red, green, yellow, blue, black, white) == white
assert foreground(black, red, green, yellow, blue, black) == yellow
assert foreground(black, red, green, blue, black) == green
assert foreground(black, red, blue, black) == red
assert foreground(black, blue, black) == blue