2015-10-07 14:47:57 +00:00
|
|
|
-module(ts_C_select_pass_1).
|
|
|
|
|
|
|
|
-behavior(riak_test).
|
|
|
|
|
2015-11-17 22:54:20 +00:00
|
|
|
-include_lib("eunit/include/eunit.hrl").
|
|
|
|
|
2015-10-07 14:47:57 +00:00
|
|
|
-export([
|
|
|
|
confirm/0
|
|
|
|
]).
|
|
|
|
|
|
|
|
confirm() ->
|
2015-11-17 22:54:20 +00:00
|
|
|
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)},
|
2015-11-17 22:54:20 +00:00
|
|
|
Got = timeseries_util:confirm_select(one_down, normal, DDL, Data, Qry),
|
|
|
|
?assertEqual(Expected, Got),
|
|
|
|
pass.
|