Nothing
# SPDX-Copyright: Copyright (c) Capital One Services, LLC
# SPDX-License-Identifier: Apache-2.0
# Copyright 2017 Capital One Services, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
# OF ANY KIND, either express or implied.
#
# SYSTEM TEST: dataCompareR : Timestamps
#
# End-to-end system tests of the dataCompareR function that look at
# different scenarios involving data frames with times in different
# formats
#
library(testthat)
source('createTwoKeyData.R')
context("TimeComparisons")
test_that("ComparisonOfEqualDates", {
dts <- createTimestampDataset()
dfTableA <- dts[[1]]
dfTableB <- dts[[2]]
ABcomparison <- rCompare(dfTableA, dfTableB, keys = c("color"))
expect_true(ABcomparison$matches[1] == "DATEA")
expect_true(names(ABcomparison$mismatches)[1] == "DATEB")
expect_true(nrow(ABcomparison$mismatches[[1]]) == 5)
expect_true(all(ABcomparison$mismatches$DATEB$diffAB < 0))
expect_true(all(ABcomparison$mismatches$DATEB$diffAB > -21))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.