![]() |
|
|||
File indexing completed on 2025-08-05 08:18:31
0001 /******************************************************************************* 0002 * Copyright (c) The JETSCAPE Collaboration, 2018 0003 * 0004 * Modular, task-based framework for simulating all aspects of heavy-ion collisions 0005 * 0006 * For the list of contributors see AUTHORS. 0007 * 0008 * Report issues at https://github.com/JETSCAPE/JETSCAPE/issues 0009 * 0010 * or via email to bugs.jetscape@gmail.com 0011 * 0012 * Distributed under the GNU General Public License 3.0 (GPLv3 or later). 0013 * See COPYING for details. 0014 ******************************************************************************/ 0015 0016 #include "LinearInterpolation.h" 0017 #include "gtest/gtest.h" 0018 0019 using namespace Jetscape; 0020 0021 TEST(LinearInterpolationTest, TEST_TRUE){ 0022 EXPECT_EQ(0.5, LinearInt(0.0, 1.0, 0.0, 1.0, 0.5)); 0023 } 0024 0025 // test code when the type of y is int 0026 TEST(LinearInterpolationTest, TEST_INT){ 0027 EXPECT_EQ(0, LinearInt(0.0, 1.0, 0, 1, 0.5)); 0028 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |