Creating Thorough Tests for AI-Generated Code is Hard

被引:0
|
作者
Singhal, Shreya [1 ]
Kumar, Viraj [2 ]
机构
[1] Indian Inst Technol Madras, Chennai, Tamil Nadu, India
[2] Indian Inst Sci, Bangalore, Karnataka, India
关键词
D O I
10.1145/3627217.3627238
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Before implementing a function, programmers are encouraged to write a suite of test cases that specify its intended behaviour on several inputs. A suite of tests is thorough if any buggy implementation fails at least one of these tests. We posit that as the proportion of code generated by Large Language Models (LLMs) grows, so must the ability of students to create test suites that are thorough enough to detect subtle bugs in such code. Our paper makes two contributions. First, we demonstrate how difficult it can be to create thorough tests for LLM-generated code by evaluating 27 test suites from a public dataset (EvalPlus). Second, by identifying deficiencies in these test suites, we propose strategies for improving the ability of students to develop thorough test suites for LLM-generated code.
引用
收藏
页码:108 / 111
页数:4
相关论文
共 50 条
  • [21] How persuasive is AI-generated propaganda?
    Goldstein, Josh A.
    Chao, Jason
    Grossman, Shelby
    Stamos, Alex
    Tomz, Michael
    PNAS NEXUS, 2024, 3 (02):
  • [22] Racial bias in AI-generated images
    Yang, Yiran
    AI & SOCIETY, 2025,
  • [23] Caution with AI-generated content in biomedicine
    Zhavoronkov, Alex
    NATURE MEDICINE, 2023, 29 (03) : 532 - 532
  • [24] Caution with AI-generated content in biomedicine
    Alex Zhavoronkov
    Nature Medicine, 2023, 29 : 532 - 532
  • [25] Advances in AI-Generated Images and Videos
    Bougueffa, Hessen
    Keita, Mamadou
    Hamidouche, Wassim
    Taleb-Ahmed, Abdelmalik
    Liz-Lopez, Helena
    Martin, Alejandro
    Camacho, David
    Hadid, Abdenour
    INTERNATIONAL JOURNAL OF INTERACTIVE MULTIMEDIA AND ARTIFICIAL INTELLIGENCE, 2024, 9 (01):
  • [26] An Analysis of the Copyrightability of AI-Generated Images
    Zheng Xianfang
    Xing Ziran
    Contemporary Social Sciences, 2024, 9 (06) : 100 - 114
  • [27] Mind ascribed to AI and the appreciation of AI-generated art
    Messingschlager, Tanja Veronika
    Appel, Markus
    NEW MEDIA & SOCIETY, 2025, 27 (03) : 1673 - 1692
  • [28] Generative AI and AI-generated Contents on Social Media
    Wang, Yichuan
    Su, Yiran
    Proceedings of the Annual Hawaii International Conference on System Sciences, 2024, : 2714 - 2715
  • [29] Gender stereotypes in AI-generated images
    Garcia-Ull, Francisco-Jose
    Melero-Lazaro, Monica
    PROFESIONAL DE LA INFORMACION, 2023, 32 (05):
  • [30] AI-Generated Books: Blueprint for the Future?
    Allen, Katherine
    ECONTENT, 2019, 42 (03) : 10 - 10