riak_test/tests/ts_C_select_pass_1.erl
2015-11-17 22:54:20 +00:00

21 lines
513 B
Erlang

-module(ts_C_select_pass_1).
-behavior(riak_test).
-include_lib("eunit/include/eunit.hrl").
-export([
confirm/0
]).
confirm() ->
DDL = timeseries_util:get_ddl(docs),
Data = timeseries_util:get_valid_select_data(),
Qry = timeseries_util:get_valid_qry(),
Expected = {
timeseries_util:get_cols(docs),
timeseries_util:exclusive_result_from_data(Data, 2, 9)},
Got = timeseries_util:confirm_select(one_down, normal, DDL, Data, Qry),
?assertEqual(Expected, Got),
pass.