From e18b7eae54c0b62d93fa1f3c0596d45122a04541 Mon Sep 17 00:00:00 2001 From: keis Date: Sun, 11 Sep 2011 16:30:13 +0200 Subject: fix set command test --- tests/test-command.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/test-command.c b/tests/test-command.c index 0f0f3c1..631f8c4 100644 --- a/tests/test-command.c +++ b/tests/test-command.c @@ -163,15 +163,12 @@ test_set_variable (struct EventFixture *ef, const void *data) { /* set a float */ /* we have to be careful about locales here */ - GString *cmd, *ev; + GString *cmd; cmd = g_string_new("set zoom_level = "); g_string_append_printf(cmd, "%f", 0.25); parse_cmd_line(g_string_free(cmd, FALSE), NULL); - ev = g_string_new("EVENT [" INSTANCE_NAME "] VARIABLE_SET zoom_level float "); - g_string_append_printf(ev, "%.2f\n", 0.25); - read_event(ef); - g_assert_cmpstr(g_string_free(ev, FALSE), ==, ef->event_buffer); + ASSERT_EVENT(ef, "VARIABLE_SET zoom_level float 0.25"); g_assert_cmpfloat(0.25, ==, uzbl.behave.zoom_level); -- cgit v1.2.3