diff tests/libclient/js-point/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-point/main.cpp	Tue Nov 29 21:21:36 2016 +0100
+++ b/tests/libclient/js-point/main.cpp	Tue Nov 29 22:25:17 2016 +0100
@@ -20,8 +20,6 @@
 
 #include <malikania/js_point.hpp>
 
-using namespace malikania;
-
 class TestPoint : 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_point(m_ctx);
+        mlk::dukx_load_point(m_ctx);
     }
 };
 
@@ -177,7 +175,7 @@
 {
     try {
         duk_push_c_function(m_ctx, [] (auto ctx) {
-            auto point = dukx_require_point(ctx, 0);
+            auto point = mlk::dukx_require_point(ctx, 0);
 
             duk_push_int(ctx, point.x());
             duk_put_global_string(ctx, "x");
@@ -209,7 +207,7 @@
 {
     try {
         duk_push_c_function(m_ctx, [] (auto ctx) {
-            dukx_require_point(ctx, 0);
+            mlk::dukx_require_point(ctx, 0);
 
             return 0;
         }, 1);
@@ -248,7 +246,7 @@
 {
     try {
         duk_push_c_function(m_ctx, [] (auto ctx) {
-            auto point = dukx_get_point(ctx, 0);
+            auto point = mlk::dukx_get_point(ctx, 0);
 
             duk_push_int(ctx, point.x());
             duk_put_global_string(ctx, "x");