diff tests/libclient/js-rectangle/main.cpp @ 43:fabbe1759cec

Misc: switch to mlk namespace, closes #589
author David Demelier <markand@malikania.fr>
date Tue, 29 Nov 2016 22:25:17 +0100
parents a47a4477f347
children f30c84b4b9ed
line wrap: on
line diff
--- a/tests/libclient/js-rectangle/main.cpp	Tue Nov 29 21:21:36 2016 +0100
+++ b/tests/libclient/js-rectangle/main.cpp	Tue Nov 29 22:25:17 2016 +0100
@@ -20,8 +20,6 @@
 
 #include <malikania/js_rectangle.hpp>
 
-using namespace malikania;
-
 class TestRectangle : public testing::Test {
 protected:
     UniqueContext m_ctx;
@@ -31,7 +29,7 @@
     {
         duk_push_object(m_ctx);
         duk_put_global_string(m_ctx, "Malikania");
-        dukx_load_rect(m_ctx);
+        mlk::dukx_load_rect(m_ctx);
     }
 };
 
@@ -236,7 +234,7 @@
 {
     try {
         duk_push_c_function(m_ctx, [] (auto ctx) {
-            auto rect = dukx_require_rect(ctx, 0);
+            auto rect = mlk::dukx_require_rect(ctx, 0);
 
             duk_push_int(ctx, rect.x());
             duk_put_global_string(ctx, "x");
@@ -278,7 +276,7 @@
 {
     try {
         duk_push_c_function(m_ctx, [] (auto ctx) {
-            dukx_require_rect(ctx, 0);
+            mlk::dukx_require_rect(ctx, 0);
 
             return 0;
         }, 1);
@@ -317,7 +315,7 @@
 {
     try {
         duk_push_c_function(m_ctx, [] (auto ctx) {
-            auto rect = dukx_get_rect(ctx, 0);
+            auto rect = mlk::dukx_get_rect(ctx, 0);
 
             duk_push_int(ctx, rect.x());
             duk_put_global_string(ctx, "x");