riak_test/tests/ts_C_select_pass_1.erl

21 lines
513 B
Erlang
Raw Normal View History

2015-10-07 14:47:57 +00:00
-module(ts_C_select_pass_1).
-behavior(riak_test).
-include_lib("eunit/include/eunit.hrl").
2015-10-07 14:47:57 +00:00
-export([
confirm/0
]).
confirm() ->
DDL = timeseries_util:get_ddl(docs),
Data = timeseries_util:get_valid_select_data(),
Qry = timeseries_util:get_valid_qry(),
2015-10-07 14:47:57 +00:00
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.