提交 26b327e4 编写于 作者: A Anton Perkov

test for STL draft in wasm_test

上级 2d7f539d
......@@ -52,28 +52,30 @@ namespace stltest {
};
static void on(const message& msg) {
std::array<uint32_t, 10> arr;
arr[0] = 0;
std::vector<uint32_t> v;
v.push_back(0);
std::stack<char> stack;
stack.push('J');
std::queue<unsigned int> q;
q.push(0);
std::deque<float> dq;
dq.push_front(0.0f);
std::list<uint32_t> l;
l.push_back(0);
std::string s;
s.append(1, 'a');
std::map<int, double> m;
m.emplace(0, 1.0);
std::set<long> st;
st.insert(0);
std::unordered_map<int, string> hm;
//hm[0] = "abc";
std::unordered_set<int> hs;
//hs.insert(0);
print("STL test start.");
std::array<uint32_t, 10> arr;
arr[0] = 0;
std::vector<uint32_t> v;
v.push_back(0);
std::stack<char> stack;
stack.push('J');
std::queue<unsigned int> q;
q.push(0);
std::deque<float> dq;
dq.push_front(0.0f);
std::list<uint32_t> l;
l.push_back(0);
std::string s;
s.append(1, 'a');
std::map<int, double> m;
m.emplace(0, 1.0);
std::set<long> st;
st.insert(0);
std::unordered_map<int, string> hm;
//hm[0] = "abc";
std::unordered_set<int> hs;
//hs.insert(0);
print("STL test done.");
}
static void apply( account_name c, action_name act) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册