Software /
code /
prosody
Comparison
spec/util_encodings_spec.lua @ 8370:2fba23c341d6
spec/util.encodings: Remove workaround for a thing
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 03 Nov 2017 15:40:52 +0100 |
parent | 8367:60eb22fd21b8 |
child | 8371:09a1ce618ad0 |
comparison
equal
deleted
inserted
replaced
8369:e08a0ff6ce14 | 8370:2fba23c341d6 |
---|---|
1 | 1 |
2 local encodings = require "util.encodings"; | 2 local encodings = require "util.encodings"; |
3 local encodings = { -- Workaround for rust thing | |
4 base64 = _G.base64; | |
5 utf8 = _G.utf8; | |
6 }; | |
7 local utf8 = assert(encodings.utf8, "no encodings.utf8 module"); | 3 local utf8 = assert(encodings.utf8, "no encodings.utf8 module"); |
8 | 4 |
9 describe("util.encodings", function () | 5 describe("util.encodings", function () |
10 describe("#encode()", function() | 6 describe("#encode()", function() |
11 it("should work", function () | 7 it("should work", function () |